RuleSettings.Profile 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定此規則適用的物件名稱 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
物件。