Visual Basic (Declaration) | |
---|---|
<StringValidatorAttribute(1)> <ConfigurationPropertyAttribute(Name="name", Options=ConfigurationPropertyOptions.IsRequired Or _ ConfigurationPropertyOptions.IsKey, IsDefaultCollection=False, IsRequired=True, IsKey=True)> Public Property Name As String |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As LoggerElement Dim value As String instance.Name = value value = instance.Name |
C# | |
---|---|
[StringValidatorAttribute(1)] [ConfigurationPropertyAttribute(Name="name", Options=ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey, IsDefaultCollection=false, IsRequired=true, IsKey=true)] public string Name {get; set;} |
C++/CLI | |
---|---|
[StringValidatorAttribute(1)] [ConfigurationPropertyAttribute(Name="name", Options=ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey, IsDefaultCollection=false, IsRequired=true, IsKey=true)] public: property String^ Name { String^ get(); void set ( String^ value); } |
Property Value
The name of the element.Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7