DynamicallyAccessedMembersAttribute 클래스

정의

지정된 Type의 특정 멤버가 System.Reflection 등을 통해 동적으로 액세스됨을 나타냅니다.

public ref class DynamicallyAccessedMembersAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.GenericParameter | System.AttributeTargets.Method | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue, Inherited=false)]
public sealed class DynamicallyAccessedMembersAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field | System.AttributeTargets.GenericParameter | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue | System.AttributeTargets.Struct, Inherited=false)]
public sealed class DynamicallyAccessedMembersAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.GenericParameter | System.AttributeTargets.Method | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue, Inherited=false)>]
type DynamicallyAccessedMembersAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field | System.AttributeTargets.GenericParameter | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue | System.AttributeTargets.Struct, Inherited=false)>]
type DynamicallyAccessedMembersAttribute = class
    inherit Attribute
Public NotInheritable Class DynamicallyAccessedMembersAttribute
Inherits Attribute
상속
DynamicallyAccessedMembersAttribute
특성

설명

이 특성을 사용하면 도구에서 프로그램을 실행하는 동안 액세스되는 멤버를 이해할 수 있습니다. 이 특성은 형식 Type 이 또는 String인 멤버에 유효합니다. 이 특성이 형식 String의 위치에 적용되면 문자열이 정규화된 형식 이름을 나타낸다는 가정이 있습니다. 특성이 메서드에 적용되는 경우 특수한 경우로 처리되며, 이는 특성이 메서드의 "this" 매개 변수에 적용되어야 한다는 것을 의미합니다. 특성은 (또는 string)에 할당할 수 Type 있는 형식의 instance 메서드에서만 사용해야 하지만 메서드는 이 메서드를 사용하지 않습니다. 자세한 내용은 트리밍 경고 소개를 참조하세요.

생성자

DynamicallyAccessedMembersAttribute(DynamicallyAccessedMemberTypes)

지정된 멤버 형식을 사용하여 DynamicallyAccessedMembersAttribute 클래스의 새 인스턴스를 초기화합니다.

속성

MemberTypes

동적으로 액세스되는 멤버의 형식을 지정하는 DynamicallyAccessedMemberTypes를 가져옵니다.

TypeId

파생 클래스에서 구현된 경우 이 Attribute에 대한 고유 식별자를 가져옵니다.

(다음에서 상속됨 Attribute)

메서드

Equals(Object)

이 인스턴스가 지정된 개체와 같은지를 나타내는 값을 반환합니다.

(다음에서 상속됨 Attribute)
GetHashCode()

이 인스턴스의 해시 코드를 반환합니다.

(다음에서 상속됨 Attribute)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
IsDefaultAttribute()

파생 클래스에서 재정의된 경우 이 인스턴스 값이 파생 클래스에 대한 기본값인지 여부를 표시합니다.

(다음에서 상속됨 Attribute)
Match(Object)

파생 클래스에서 재정의된 경우 이 인스턴스가 지정된 개체와 같은지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 Attribute)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상

추가 정보