PrivateObject.GetField 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
| Name | Description |
|---|---|
| GetField(String, BindingFlags) |
Gets the field |
| GetField(String) |
Get the field |
GetField(String, BindingFlags)
- Source:
- PrivateObject.cs
- Source:
- PrivateObject.cs
Gets the field
public:
System::Object ^ GetField(System::String ^ name, System::Reflection::BindingFlags bindingFlags);
public object? GetField(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)
- Source:
- PrivateObject.cs
- Source:
- PrivateObject.cs
Get the field
public:
System::Object ^ GetField(System::String ^ name);
public object? GetField(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.