Miner.Desktop.DesignerExpress Assembly > Miner.Desktop.DesignerExpress.Annotations Namespace : StringFormatMethodAttribute Class |
'Declaration <AttributeUsageAttribute(ValidOn=AttributeTargets.Constructor Or _ AttributeTargets.Method, AllowMultiple=False, Inherited=True)> Public NotInheritable Class StringFormatMethodAttribute Inherits System.Attribute
'Usage Dim instance As StringFormatMethodAttribute
[AttributeUsage(ValidOn=AttributeTargets.Constructor | AttributeTargets.Method, AllowMultiple=false, Inherited=true)] public sealed class StringFormatMethodAttribute : System.Attribute
[StringFormatMethod("message")] public void ShowError(string message, params object[] args) { /* do something */ } public void Foo() { ShowError("Failed: {0}"); // Warning: Non-existing argument in format string }
System.Object
System.Attribute
Miner.Desktop.DesignerExpress.Annotations.StringFormatMethodAttribute
Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)
Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.