Share via


ExtensionCore.GetFactory(ServiceMoniker) Method

Definition

Gets the service factory for the service moniker requested.

public virtual Microsoft.VisualStudio.Extensibility.IServiceFactory GetFactory (Microsoft.ServiceHub.Framework.ServiceMoniker serviceMoniker);
abstract member GetFactory : Microsoft.ServiceHub.Framework.ServiceMoniker -> Microsoft.VisualStudio.Extensibility.IServiceFactory
override this.GetFactory : Microsoft.ServiceHub.Framework.ServiceMoniker -> Microsoft.VisualStudio.Extensibility.IServiceFactory
Public Overridable Function GetFactory (serviceMoniker As ServiceMoniker) As IServiceFactory

Parameters

serviceMoniker
ServiceMoniker

Service moniker requested.

Returns

an instance of IServiceFactory that should be able to create the service instance for the requested moniker.

Exceptions

Thrown when a factory registration is not present for the queried moniker.

Applies to