VirtualTypeImplementor.GetField Method
Gets the value of the requested field.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
Public Overridable Function GetField ( _
field As FieldInfo, _
instance As Object _
) As Object
public virtual Object GetField(
FieldInfo field,
Object instance
)
public:
virtual Object^ GetField(
FieldInfo^ field,
Object^ instance
)
abstract GetField :
field:FieldInfo *
instance:Object -> Object
override GetField :
field:FieldInfo *
instance:Object -> Object
public function GetField(
field : FieldInfo,
instance : Object
) : Object
Parameters
field
Type: System.Reflection.FieldInfoThe field to get the value of.
instance
Type: System.ObjectThe instance on which to retrieve the field. This may be nulla null reference (Nothing in Visual Basic) if the field is static.
Return Value
Type: System.Object
An object that represents the requested field.
Exceptions
Exception | Condition |
---|---|
NotImplementedException | If non-abstract derived class did not provide an implementation by overriding this method. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.