RuleSettings.EventName 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定此規則適用的物件名稱 EventMappingSettings 。
public:
property System::String ^ EventName { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("eventName", DefaultValue="", IsRequired=true)]
public string EventName { get; set; }
[<System.Configuration.ConfigurationProperty("eventName", DefaultValue="", IsRequired=true)>]
member this.EventName : string with get, set
Public Property EventName As String
屬性值
此規則適用於物件名稱 EventMappingSettings 。
- 屬性
範例
以下程式碼範例說明如何使用該 EventName 屬性。 此程式碼範例是本類別更大範例 HealthMonitoringSection 的一部分。
ruleSetting.EventName = "All Errors";
ruleSetting.EventName = "All Errors"
備註
EventMappingSettings此屬性所參考的物件必須包含於HealthMonitoringSection同時包含 的同一物件中RuleSettings
物件。