PrivateType.GetStaticField Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.