ProfileSettings.Name Propriedade
Definição
Obtém ou define o nome do objeto ProfileSettings.Gets or sets the name of the ProfileSettings object.
public:
property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("name", DefaultValue=Mono.Cecil.CustomAttributeArgument, IsKey=true, IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Name { get; set; }
[<System.Configuration.ConfigurationProperty("name", DefaultValue=Mono.Cecil.CustomAttributeArgument, IsKey=true, IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Name : string with get, set
Public Property Name As String
Valor da propriedade
O nome do objeto ProfileSettings.The name of the ProfileSettings object. O padrão é uma cadeia de caracteres vazia ("").The default is an empty string("").
- Atributos
Exemplos
O exemplo de código a seguir mostra como usar a Name propriedade.The following code example shows how to use the Name property. Este exemplo de código faz parte de um exemplo maior fornecido para a HealthMonitoringSection classe.This code example is part of a larger example provided for the HealthMonitoringSection class.
profileSetting.Name = "Custom";
profileSetting.Name = "Custom"
Comentários
um nome exclusivo é necessário.A unique name is required. Nomes duplicados podem resultar em perda de dados quando a seção de configuração é salva.Duplicate names may result in a loss of data when the configuration section is saved.