VirtualTypeImplementor.GetField(FieldInfo, Object) 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.
Gets the value of the requested field.
public:
virtual System::Object ^ GetField(System::Reflection::FieldInfo ^ field, System::Object ^ instance);
public virtual object GetField (System.Reflection.FieldInfo field, object instance);
abstract member GetField : System.Reflection.FieldInfo * obj -> obj
override this.GetField : System.Reflection.FieldInfo * obj -> obj
Public Overridable Function GetField (field As FieldInfo, instance As Object) As Object
Parameters
- field
- FieldInfo
The field to get the value of.
- instance
- Object
The instance on which to retrieve the field. This may be null
if the field is static.
Returns
An object that represents the requested field.
Exceptions
If non-abstract derived class did not provide an implementation by overriding this method.