共用方式為


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

物件。

適用於

另請參閱