共用方式為


VirtualTypeImplementor.SetField Method

Sets the value of the requested field.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'宣告
Public Overridable Sub SetField ( _
    field As FieldInfo, _
    instance As Object, _
    value As Object _
)
public virtual void SetField(
    FieldInfo field,
    Object instance,
    Object value
)

Parameters

  • instance
    Type: System.Object
    The instance on which to set the field. This may be nulla null reference (Nothing in Visual Basic) if the field is static.

Exceptions

Exception Condition
NotImplementedException

If non-abstract derived class did not provide an implementation by overriding this method.

.NET Framework Security

See Also

Reference

VirtualTypeImplementor Class

Microsoft.VisualStudio.Shell.Design Namespace