[StringValidatorAttribute(1)]
[ConfigurationPropertyAttribute(Name="name",
Options=ConfigurationPropertyOptions.IsRequired |
ConfigurationPropertyOptions.IsKey,
IsDefaultCollection=false,
IsRequired=true,
IsKey=true)]
public string Name {get; set;}
'Declaration
<StringValidatorAttribute(1)>
<ConfigurationPropertyAttribute(Name="name",
Options=ConfigurationPropertyOptions.IsRequired Or _
ConfigurationPropertyOptions.IsKey,
IsDefaultCollection=False,
IsRequired=True,
IsKey=True)>
Public Property Name As String
'Usage
Dim instance As TypeConfigurationElement
Dim value As String
instance.Name = value
value = instance.Name
[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);
}