다음을 통해 공유


PrivateType.GetStaticField Method

Definition

Overloads

GetStaticField(String)

Gets the static field

GetStaticField(String, BindingFlags)

Gets the static field using specified InvokeHelper attributes

GetStaticField(String)

Gets the static field

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

Parameters

name
String

Name of the field

Returns

The static field.

Applies to

GetStaticField(String, BindingFlags)

Gets the static field using specified InvokeHelper attributes

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

Parameters

name
String

Name of the field

bindingFlags
BindingFlags

Additional invocation attributes

Returns

The static field.

Applies to