ExtensionCore.GetFactory(ServiceMoniker) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.