다음을 통해 공유


Utility.GetCustomAttributes(Type, Type, Boolean) 메서드

정의

파생 클래스에서 재정의되는 경우 이 멤버에 적용되고 System.Type으로 식별되는 사용자 지정 특성 배열을 반환합니다.

public static System.Collections.Generic.IEnumerable<object> GetCustomAttributes (Type type, Type attributeType, bool inherit);
static member GetCustomAttributes : Type * Type * bool -> seq<obj>
Public Shared Function GetCustomAttributes (type As Type, attributeType As Type, inherit As Boolean) As IEnumerable(Of Object)

매개 변수

type
Type

사용자 지정 특성을 쿼리할 형식입니다.

attributeType
Type

검색할 특성의 형식입니다. 이 형식에 할당할 수 있는 특성만 반환됩니다.

inherit
Boolean

true이면 이 멤버의 상속 체인을 검색하여 특성을 찾습니다. 그렇지 않으면 false입니다. 이 매개 변수는 속성 및 이벤트에 대해 무시됩니다. 설명을 참조하세요.

반환

IEnumerable<T> 이 멤버에 적용된 사용자 지정 특성의 이거나 attributeType에 할당할 수 있는 특성이 적용되지 않은 경우 요소가 없는 배열입니다.

적용 대상