RuntimeReflectionExtensions.GetRuntimeFields(Type) 메서드
정의
지정된 형식에서 정의된 모든 메소드를 나타내는 컬렉션을 검색합니다.Retrieves a collection that represents all the fields defined on a specified type.
public:
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IEnumerable<System::Reflection::FieldInfo ^> ^ GetRuntimeFields(Type ^ type);
public static System.Collections.Generic.IEnumerable<System.Reflection.FieldInfo> GetRuntimeFields (this Type type);
static member GetRuntimeFields : Type -> seq<System.Reflection.FieldInfo>
<Extension()>
Public Function GetRuntimeFields (type As Type) As IEnumerable(Of FieldInfo)
매개 변수
- type
- Type
필드가 포함된 형식입니다.The type that contains the fields.
반환
지정된 형식의 필드 컬렉션입니다.A collection of fields for the specified type.
예외
type
이(가) null
인 경우type
is null
.
설명
이 메서드는 상속 된 public이 아닌, 인스턴스 및 정적 필드를 포함 하 여 지정 된 형식에 정의 된 모든 필드를 반환 합니다.This method returns all fields that are defined on the specified type, including inherited, non-public, instance, and static fields.