다음을 통해 공유


AuthorizationAttribute.ResourceType 속성

ErrorMessage에 대한 리소스 관리자로 사용할 Type을 가져오거나 설정합니다.

네임스페이스: System.ComponentModel.DataAnnotations
어셈블리: system.servicemodel.domainservices.server.dll의 System.ServiceModel.DomainServices.Server

사용법

‘사용 방법
Dim instance As AuthorizationAttribute
Dim value As Type

value = instance.ResourceType

instance.ResourceType = value

구문

‘선언
Public Property ResourceType As Type
public Type ResourceType { get; set; }
public:
property Type^ ResourceType {
    Type^ get ();
    void set (Type^ value);
}
/** @property */
public Type get_ResourceType ()

/** @property */
public void set_ResourceType (Type value)
public function get ResourceType () : Type

public function set ResourceType (value : Type)

속성 값

리소스 관리자로 사용할 Type이거나, ErrorMessage에 리터럴 값이 포함되어 있는 경우 null입니다.

설명

선택적 속성입니다. null인 경우 ErrorMessage는 리터럴 문자열로 처리됩니다. null이 아닌 경우 ErrorMessage는 실제 오류 메시지를 생성하기 위해 검색할 수 있는 지정된 Type 내의 정적 속성 이름으로 처리됩니다.

스레드 보안

이 형식의 모든 public static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 모든 인스턴스 멤버는 스레드로부터 안전하지 않을 수 있습니다.

플랫폼

개발 플랫폼

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008 및 Windows 2000

대상 플랫폼

참고 항목

참조

AuthorizationAttribute 클래스
AuthorizationAttribute 멤버
System.ComponentModel.DataAnnotations 네임스페이스