다음을 통해 공유


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

속성 값

String

올바른 형식 참조 또는 빈 문자열("")입니다. 기본값은 빈 문자열입니다.

특성

예제

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

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

설명

이벤트의 형식을 지정 하려면이 속성을 사용 합니다. 지정된 된 형식에는 실제 클래스 형식 또는 이벤트 클래스는 부모 형식의 수 있습니다. 빈 문자열인 경우 (""), 지지에 매핑된 및 EventMappingSettings 자리 표시자로 사용 되는 개체입니다.

형식 참조를 다음과 같이 형식이 (괄호 안의 항목은 필요 없음): Namespace. Typename, Assemblyname[,] [버전 = x] [문화권 y =] [PublicKeyToken = z]. 예를 들어 "ExampleNameSpace.ExampleType, Example.Assembly, 버전 = % ASSEMBLY_VERSION %, Culture = neutral, PublicKeyToken MICROSOFT_PUBLICKEY % ="

적용 대상

추가 정보