NamedConfigurationElement.Name Property

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Gets or sets the name of the element.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Common.Configuration
Assembly:  Microsoft.Practices.EnterpriseLibrary.Common (in Microsoft.Practices.EnterpriseLibrary.Common.dll)

Syntax

'Declaration
<StringValidatorAttribute(MinLength := )> _
<ConfigurationPropertyAttribute("name", IsKey := True, DefaultValue := "Name",  _
    IsRequired := True)> _
PublicPropertyNameAs String
[StringValidatorAttribute(MinLength = )]
[ConfigurationPropertyAttribute("name", IsKey = true, DefaultValue = "Name", 
    IsRequired = true)]
public string Name { get; set; }
[StringValidatorAttribute(MinLength = )]
[ConfigurationPropertyAttribute(L"name", IsKey = true, DefaultValue = L"Name", 
    IsRequired = true)]
public:
virtualproperty String^ Name {
    String^ get () sealed;
    voidset (String^ value) sealed;
}
publicfinalfunction getName () : String
publicfinalfunction setName (value : String)

Field Value

The name of the element.

Implements

IObjectWithName.Name

See Also

NamedConfigurationElement Class

Microsoft.Practices.EnterpriseLibrary.Common.Configuration Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.