RuntimeReflectionExtensions.GetRuntimeField(Type, String) 메서드

정의

지정된 필드를 나타내는 개체를 검색합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::FieldInfo ^ GetRuntimeField(Type ^ type, System::String ^ name);
public static System.Reflection.FieldInfo GetRuntimeField (this Type type, string name);
public static System.Reflection.FieldInfo? GetRuntimeField (this Type type, string name);
static member GetRuntimeField : Type * string -> System.Reflection.FieldInfo
<Extension()>
Public Function GetRuntimeField (type As Type, name As String) As FieldInfo

매개 변수

type
Type

필드가 포함된 형식입니다.

name
String

필드의 이름입니다.

반환

FieldInfo

지정된 필드를 나타내는 개체이며 필드가 없는 경우 null을 반환합니다.

예외

type이(가) null인 경우

또는

name이(가) null인 경우

적용 대상

추가 정보