Condividi tramite


RuleSettings.Name Proprietà

Definizione

Ottiene o imposta il nome dell'oggetto RuleSettings .

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

Valore della proprietà

Nome dell'oggetto RuleSettings . Il valore predefinito è una stringa vuota ("").

Attributi

Esempio

Nell'esempio di codice seguente viene illustrato come utilizzare la Name proprietà . Questo esempio di codice fa parte di un esempio più ampio fornito per la HealthMonitoringSection classe .

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

Commenti

È necessario un nome univoco.

Si applica a

Vedi anche