Udostępnij za pośrednictwem


RuleSettings.Profile Właściwość

Definicja

Pobiera lub ustawia nazwę ProfileSettings obiektu, do których ma zastosowanie ta reguła.

public:
 property System::String ^ Profile { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("profile", DefaultValue="")]
public string Profile { get; set; }
[<System.Configuration.ConfigurationProperty("profile", DefaultValue="")>]
member this.Profile : string with get, set
Public Property Profile As String

Wartość właściwości

Nazwa ProfileSettings obiektu, do których ma zastosowanie ta reguła.

Atrybuty

Przykłady

W poniższym przykładzie kodu pokazano, jak używać Profile właściwości . Ten przykład kodu jest częścią większego przykładu udostępnionego dla klasy HealthMonitoringSection.

ruleSetting.Profile = "Custom";
ruleSetting.Profile = "Custom"

Uwagi

Obiekt ProfileSettings , do którego odwołuje się ta właściwość, musi zawierać ten sam HealthMonitoringSection obiekt, który zawiera również ten obiekt. RuleSettings

Obiektu.

Dotyczy

Zobacz też