Partager via


PrivateObject.GetField Method

Definition

Overloads

GetField(String, BindingFlags)

Gets the field

GetField(String)

Get the field

GetField(String, BindingFlags)

Gets the field

public:
 System::Object ^ GetField(System::String ^ name, System::Reflection::BindingFlags bindingFlags);
public object GetField (string name, System.Reflection.BindingFlags bindingFlags);
member this.GetField : string * System.Reflection.BindingFlags -> obj
Public Function GetField (name As String, bindingFlags As BindingFlags) As Object

Parameters

name
String

Name of the field

bindingFlags
BindingFlags

A bitmask comprised of one or more BindingFlags that specify how the search is conducted.

Returns

The field.

Applies to

GetField(String)

Get the field

public:
 System::Object ^ GetField(System::String ^ name);
public object GetField (string name);
member this.GetField : string -> obj
Public Function GetField (name As String) As Object

Parameters

name
String

Name of the field

Returns

The field.

Applies to