次の方法で共有


RuleSettings.Profile プロパティ

定義

この規則が適用される ProfileSettings オブジェクトの名前を取得または設定します。

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

プロパティ値

この規則が適用される ProfileSettings オブジェクトの名前。

属性

次のコード例は、 Profile プロパティの使用方法を示しています。 このコード例は、 HealthMonitoringSection クラスに提供されるより大きな例の一部です。

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

注釈

このプロパティによって参照される ProfileSettings オブジェクトは、このプロパティを含む同じ HealthMonitoringSection オブジェクトに含まれている必要があります RuleSettings

オブジェクト。

適用対象

こちらもご覧ください