共用方式為


RuleSettings.EventName 屬性

定義

取得或設定此規則適用的物件名稱 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

物件。

適用於

另請參閱