ExtensionPointPackage::CreateExtensionPoint Method (Guid, Guid)

 

Creates an extension point.

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

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.

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.

Return to top
Show: