RuleSettings.Name Propriedade

Definição

Obtém ou define o nome do RuleSettings objeto.

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("name", DefaultValue="", IsKey=true, IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Name { get; set; }
[<System.Configuration.ConfigurationProperty("name", DefaultValue="", IsKey=true, IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Name : string with get, set
Public Property Name As String

Valor de Propriedade

O nome do RuleSettings objeto. O valor padrão é uma cadeia vazia ("").

Atributos

Exemplos

O seguinte exemplo de código mostra como usar a Name propriedade. Este exemplo de código faz parte de um exemplo maior fornecido para a HealthMonitoringSection classe.

ruleSetting.Name = "All Errors Custom";
ruleSetting.Name = "All Errors Custom"

Observações

É necessário um nome único.

Aplica-se a

Ver também