Share via


PrivateType.GetStaticFieldOrProperty Method

Definition

Overloads

GetStaticFieldOrProperty(String)

Gets the static field or property

GetStaticFieldOrProperty(String, BindingFlags)

Gets the static field or property using specified InvokeHelper attributes

GetStaticFieldOrProperty(String)

Gets the static field or property

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

Parameters

name
String

Name of the field or property

Returns

The static field or property.

Applies to

GetStaticFieldOrProperty(String, BindingFlags)

Gets the static field or property using specified InvokeHelper attributes

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

Parameters

name
String

Name of the field or property

bindingFlags
BindingFlags

Additional invocation attributes

Returns

The static field or property.

Applies to