RuleSettings.Name Свойство

Определение

Возвращает или задает имя объекта 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

Значение свойства

Имя объекта RuleSettings. Значение по умолчанию — пустая строка.

Атрибуты

Примеры

В следующем примере кода показано, как использовать свойство Name. Этот пример входит в состав более крупного примера использования класса HealthMonitoringSection.

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

Комментарии

Укажите уникальное имя.

Применяется к

См. также раздел