ExtensionPointPackage.CreateExtensionPoint Method
Creates an extension point.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaración
Protected Overridable Function CreateExtensionPoint ( _
extensionPoint As Guid, _
instance As Guid _
) As Object
protected virtual Object CreateExtensionPoint(
Guid extensionPoint,
Guid instance
)
Parameters
- extensionPoint
Type: System.Guid
The requested extension point type.
- instance
Type: System.Guid
Instance identifier of the requested extension point.
Return Value
Type: System.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.