次の方法で共有


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

オブジェクト。

適用対象

こちらもご覧ください