次の方法で共有


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

プロパティ値

String

この規則の適用対象となる ProfileSettings オブジェクトの名前。

属性

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

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

注釈

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

オブジェクト。

適用対象

こちらもご覧ください