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à

String

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

Attributi

Esempio

Nell'esempio di codice riportato di seguito viene illustrato come utilizzare la proprietà Name. Questo esempio di codice fa parte di un esempio più grande 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