RuleSettings.Name Własność
Definicja
Ważny
Niektóre informacje dotyczą produktów przedpremierowych, które mogą zostać znacznie zmodyfikowane przed premierą. Microsoft nie udziela żadnych gwarancji, ani wyraźnych, ani domniemanych, dotyczących informacji podanych tutaj.
Pobiera lub ustawia nazwę RuleSettings obiektu.
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
Wartość nieruchomości
Nazwa RuleSettings obiektu. Wartością domyślną jest ciąg pusty ("").
- Atrybuty
Przykłady
W poniższym przykładzie kodu pokazano, jak używać Name właściwości. Ten przykład kodu jest częścią większego przykładu podanego HealthMonitoringSection dla klasy.
ruleSetting.Name = "All Errors Custom";
ruleSetting.Name = "All Errors Custom"
Uwagi
wymagana jest unikatowa nazwa.