Module.GetCustomAttributesData 메서드
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
리플렉션 전용 컨텍스트에서 사용할 수 있는 현재 모듈에 대한 CustomAttributeData 개체 목록을 반환합니다.
public:
virtual System::Collections::Generic::IList<System::Reflection::CustomAttributeData ^> ^ GetCustomAttributesData();
public virtual System.Collections.Generic.IList<System.Reflection.CustomAttributeData> GetCustomAttributesData ();
abstract member GetCustomAttributesData : unit -> System.Collections.Generic.IList<System.Reflection.CustomAttributeData>
override this.GetCustomAttributesData : unit -> System.Collections.Generic.IList<System.Reflection.CustomAttributeData>
Public Overridable Function GetCustomAttributesData () As IList(Of CustomAttributeData)
현재 모듈에 적용된 특성에 대한 데이터를 나타내는 CustomAttributeData 개체의 제네릭 목록입니다.
리플렉션 전용 컨텍스트에 로드되는 코드에서 사용자 지정 특성 자체가 정의된 경우 이 메서드를 사용하여 리플렉션 전용 컨텍스트에서 코드의 사용자 지정 특성을 검사합니다. 및 Module.GetCustomAttributes 와 같은 Attribute.GetCustomAttributes 메서드는 특성의 인스턴스를 만들기 때문에 이러한 경우 사용할 수 없습니다. 리플렉션 전용 컨텍스트의 코드는 실행할 수 없습니다. 자세한 내용 및 예제 코드는 클래스를 참조하세요 CustomAttributeData .
.NET 피드백
.NET은(는) 오픈 소스 프로젝트입니다. 다음 링크를 선택하여 피드백을 제공해 주세요.