ExtensionPointPackage.CreateExtensionPoint Method
Creates an extension point.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Protected Overridable Function CreateExtensionPoint ( _
extensionPoint As Guid, _
instance As Guid _
) As Object
protected virtual Object CreateExtensionPoint(
Guid extensionPoint,
Guid instance
)
protected:
virtual Object^ CreateExtensionPoint(
Guid extensionPoint,
Guid instance
)
abstract CreateExtensionPoint :
extensionPoint:Guid *
instance:Guid -> Object
override CreateExtensionPoint :
extensionPoint:Guid *
instance:Guid -> Object
protected function CreateExtensionPoint(
extensionPoint : Guid,
instance : Guid
) : Object
Parameters
extensionPoint
Type: GuidThe requested extension point type.
instance
Type: GuidInstance identifier of the requested extension point.
Return Value
Type: Object
The requested extension point or null on failure. If null is returned, the package will throw an ArgumentException to its caller.
Remarks
This method is called by the base class in order to satisfy a request for an extension point. Extension points are implemented by packages and requested on demand by shared components. This is the reverse of the “factory” pattern, where packages register factories with a central service.
The base class implements discovery mechanisms for well-known extension points. Derived classes may override this and optionally call the base class.
.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.