DynamicallyAccessedMembersAttribute 클래스

정의

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

public ref class DynamicallyAccessedMembersAttribute sealed : 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)]
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)>]
type DynamicallyAccessedMembersAttribute = class
    inherit 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
Public NotInheritable Class DynamicallyAccessedMembersAttribute
Inherits Attribute
상속
DynamicallyAccessedMembersAttribute
특성

설명

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

생성자

Name Description
DynamicallyAccessedMembersAttribute(DynamicallyAccessedMemberTypes)

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

속성

Name Description
MemberTypes

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

TypeId

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

(다음에서 상속됨 Attribute)

메서드

Name Description
Equals(Object)

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

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

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

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

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

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

파생 클래스에서 재정의되는 경우 이 인스턴스의 값이 파생 클래스의 기본값인지 여부를 나타냅니다.

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

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

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

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

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

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

(다음에서 상속됨 Object)

적용 대상

추가 정보