EventMappingSettings コンストラクター

定義

EventMappingSettings クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
EventMappingSettings(String, String)

指定した名前と型を使用して、 EventMappingSettings クラスの新しいインスタンスを初期化します。

EventMappingSettings(String, String, Int32, Int32)

指定した値を使用して、 BufferModeSettings クラスの新しいインスタンスを初期化します。

EventMappingSettings(String, String)

指定した名前と型を使用して、 EventMappingSettings クラスの新しいインスタンスを初期化します。

public:
 EventMappingSettings(System::String ^ name, System::String ^ type);
public EventMappingSettings(string name, string type);
new System.Web.Configuration.EventMappingSettings : string * string -> System.Web.Configuration.EventMappingSettings
Public Sub New (name As String, type As String)

パラメーター

name
String

作成する EventMappingSettings オブジェクトの名前。

type
String

使用するイベント クラスの完全修飾型。

次のコード例は、 EventMappingSettings コンストラクターの使用方法を示しています。 このコード例は、 HealthMonitoringSection クラスに提供されるより大きな例の一部です。

// Add an EventMappingsSettings object to the EventMappings collection property.
healthMonitoringSection.EventMappings.Add(new EventMappingSettings(
    "Failure Audits", "System.Web.Management.WebAuditEvent, System.Web"));
' Add an EventMappingsSettings object to the EventMappings collection property.
healthMonitoringSection.EventMappings.Add(new EventMappingSettings( _
    "Failure Audits", "System.Web.Management.WebAuditEvent, System.Web"))

注釈

次の表に、このコンストラクターに使用される既定の設定を示します。

Setting デフォルト値
StartEventCode 0.
EndEventCode MaxValue

こちらもご覧ください

適用対象

EventMappingSettings(String, String, Int32, Int32)

指定した値を使用して、 BufferModeSettings クラスの新しいインスタンスを初期化します。

public:
 EventMappingSettings(System::String ^ name, System::String ^ type, int startEventCode, int endEventCode);
public EventMappingSettings(string name, string type, int startEventCode, int endEventCode);
new System.Web.Configuration.EventMappingSettings : string * string * int * int -> System.Web.Configuration.EventMappingSettings
Public Sub New (name As String, type As String, startEventCode As Integer, endEventCode As Integer)

パラメーター

name
String

作成する EventMappingSettings オブジェクトの名前。

type
String

使用するイベント クラスの完全修飾型。

startEventCode
Int32

開始イベント コードの範囲。

endEventCode
Int32

終了イベント コードの範囲。

次のコード例は、 EventMappingSettings コンストラクターの使用方法を示しています。 このコード例は、 HealthMonitoringSection クラスに提供されるより大きな例の一部です。

// Add an EventMappingsSettings object to the EventMappings collection property.
healthMonitoringSection.EventMappings.Add(new EventMappingSettings(
    "Success Audits", "System.Web.Management.WebAuditEvent, System.Web",
    512, Int32.MaxValue));
' Add an EventMappingsSettings object to the EventMappings collection property.
healthMonitoringSection.EventMappings.Add(new EventMappingSettings( _
    "Success Audits", "System.Web.Management.WebAuditEvent, System.Web", _
    512, Int32.MaxValue))

こちらもご覧ください

適用対象