Visual Basic (Declaration) | |
---|---|
<ConfigurationPropertyAttribute(Name="name", IsDefaultCollection=False, IsRequired=True, IsKey=True)> <StringValidatorAttribute(ValidatorInstance=System.Configuration.StringValidator, MinLength=1)> Public Property Name As String |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
[ConfigurationPropertyAttribute(Name="name", IsDefaultCollection=false, IsRequired=true, IsKey=true)] [StringValidatorAttribute(ValidatorInstance=System.Configuration.StringValidator, MinLength=1)] public string Name {get; set;} |
C++/CLI | |
---|---|
[ConfigurationPropertyAttribute(Name="name", IsDefaultCollection=false, IsRequired=true, IsKey=true)] [StringValidatorAttribute(ValidatorInstance=System.Configuration.StringValidator, MinLength=1)] public: property String^ Name { String^ get(); void set (String^ value); } |
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family