다음을 통해 공유


AuthorizationAttribute 멤버

사용자 지정 메타데이터를 통해 권한 부여를 제어하는 데 사용되는 클래스의 기본 클래스 역할을 합니다.

다음 표에는 AuthorizationAttribute 유형으로 제공되는 멤버의 목록이 나와 있습니다.

보호됨 생성자

  이름 설명
  AuthorizationAttribute AuthorizationAttribute 클래스의 새 인스턴스를 초기화합니다.

위쪽

공개 속성

  이름 설명
public property ErrorMessage ErrorMessage에 반환하려는 리터럴 오류 메시지 또는 리소스 키를 가져오거나 설정합니다.
public property ResourceType ErrorMessage에 대한 리소스 관리자로 사용할 Type을 가져오거나 설정합니다.
public property TypeId  (Attribute에서 상속됨)

위쪽

공개 메서드

(보호됨 메서드 참고)

  이름 설명
public method Authorize 지정된 보안 주체 개체가 지정된 AuthorizationContext에서 설명하는 특정 작업을 수행할 수 있는 권한이 있는지 여부를 확인합니다.
public method Equals  오버로드되었습니다. (Attribute에서 상속됨)
public methodstatic GetCustomAttribute  오버로드되었습니다. (Attribute에서 상속됨)
public methodstatic GetCustomAttributes  오버로드되었습니다. (Attribute에서 상속됨)
public method GetHashCode  (Attribute에서 상속됨)
public method GetType  (Object에서 상속됨)
public method IsDefaultAttribute  (Attribute에서 상속됨)
public methodstatic IsDefined  오버로드되었습니다. (Attribute에서 상속됨)
public method Match  (Attribute에서 상속됨)
public methodstatic ReferenceEquals  (Object에서 상속됨)
public method ToString  (Object에서 상속됨)

위쪽

보호됨 메서드

  이름 설명
protected method Finalize  (Object에서 상속됨)
protected method FormatErrorMessage 사용자에게 표시할 현재 AuthorizationAttribute에 대한 서식 있는 오류 메시지를 가져옵니다.
protected method IsAuthorized 지정된 IPrincipal 개체가 지정된 AuthorizationContext 개체에서 설명하는 특정 작업을 수행할 수 있는 권한이 있는지 여부를 확인하는 구현별 메서드입니다.
protected method MemberwiseClone  (Object에서 상속됨)

위쪽

명시적 인터페이스 구현

  이름 설명
  System.Runtime.InteropServices._Attribute.GetIDsOfNames  (Attribute에서 상속됨)
  System.Runtime.InteropServices._Attribute.GetTypeInfo  (Attribute에서 상속됨)
  System.Runtime.InteropServices._Attribute.GetTypeInfoCount  (Attribute에서 상속됨)
  System.Runtime.InteropServices._Attribute.Invoke  (Attribute에서 상속됨)

위쪽

참고 항목

참조

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