共用方式為


IVsExtensibleObject Interface

Definition

Returns a VSPackage-specific automation object at specific points in the automation model.

public interface class IVsExtensibleObject
public interface class IVsExtensibleObject
__interface IVsExtensibleObject
[System.Runtime.InteropServices.Guid("D2C45F92-23B5-408B-B41D-D4365FB7EDA8")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsExtensibleObject
[System.Runtime.InteropServices.Guid("D2C45F92-23B5-408B-B41D-D4365FB7EDA8")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsExtensibleObject
[<System.Runtime.InteropServices.Guid("D2C45F92-23B5-408B-B41D-D4365FB7EDA8")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsExtensibleObject = interface
[<System.Runtime.InteropServices.Guid("D2C45F92-23B5-408B-B41D-D4365FB7EDA8")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsExtensibleObject = interface
Public Interface IVsExtensibleObject
Derived
Attributes

Remarks

Implement either IVsExtensibleObject or IExtensibleObject when you want to extend the automation model with a customized object in either a tool window or document window.

The environment calls the GetAutomationObject method when an automation consumer tries to use your the automation object of your VSPackage.

See illustrations of the implementation of this interface in the Basic Edit Sample.

Notes to Implementers

Implement this interface when you want to extend the automation model with a customized object in either a tool window or document window.

Methods

GetAutomationObject(String, Object)

Returns an automation object.

Applies to