RuntimeReflectionExtensions.GetRuntimeField(Type, String) Method

Definition

지정된 된 필드를 나타내는 개체를 검색 합니다.Retrieves an object that represents a specified field.

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);
static member GetRuntimeField : Type * string -> System.Reflection.FieldInfo
<Extension()>
Public Function GetRuntimeField (type As Type, name As String) As FieldInfo

Parameters

type
Type

필드를 포함 하는 형식입니다.The type that contains the field.

name
String

필드 이름입니다.The name of the field.

Returns

FieldInfo

지정된 필드를 나타내는 개체이며 필드가 없는 경우 null을 반환합니다.An object that represents the specified field, or null if the field is not found.

Exceptions

typenull입니다.type is null.

또는-or-

namenull입니다.name is null.

Applies to

See also