다음을 통해 공유


EventMappingSettings.Type 속성

정의

사용자 지정 이벤트 유형을 가져오거나 설정합니다.

public:
 property System::String ^ Type { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("type", DefaultValue="", IsRequired=true)]
public string Type { get; set; }
[<System.Configuration.ConfigurationProperty("type", DefaultValue="", IsRequired=true)>]
member this.Type : string with get, set
Public Property Type As String

속성 값

유효한 형식 참조 또는 빈 문자열("")입니다. 기본값은 빈 문자열입니다.

특성

예제

다음 코드 예제에서는 속성을 사용 하는 방법을 보여 있습니다 Type . 이 코드 예제는 클래스에 제공된 더 큰 예제의 HealthMonitoringSection 일부입니다.

eventMappingSetting.Type = 
    "System.Web.Management.WebErrorEvent, System.Web";
eventMappingSetting.Type = _
    "System.Web.Management.WebErrorEvent, System.Web"

설명

이 속성을 사용 하 여 이벤트의 형식을 지정 합니다. 지정된 형식은 실제 클래스 형식 또는 이벤트 클래스의 부모 형식일 수 있습니다. 빈 문자열("")인 경우 이벤트가 매핑되지 않으며 개체가 EventMappingSettings 자리 표시자 역할을 합니다.

형식 참조는 다음과 같이 구성됩니다(대괄호 안의 항목은 필요하지 않음): 네임스페이스. Typename, Assemblyname[,] [Version=x,] [Culture=y,] [PublicKeyToken=z]. 예: "ExampleNameSpace.ExampleType, Example.Assembly, Version=%ASSEMBLY_VERSION%, Culture=neutral, PublicKeyToken=%MICROSOFT_PUBLICKEY%"

적용 대상

추가 정보