ServiceFactoryRegistrationAttribute(String, String, Type, Type, Type) Constructor

Definition

Initializes a new instance of the ServiceFactoryRegistrationAttribute class.

public ServiceFactoryRegistrationAttribute (string serviceName, string serviceVersion, Type factoryType, Type? instanceType = default, Type? interfaceType = default);
new Microsoft.VisualStudio.Extensibility.ServiceFactoryRegistrationAttribute : string * string * Type * Type * Type -> Microsoft.VisualStudio.Extensibility.ServiceFactoryRegistrationAttribute
Public Sub New (serviceName As String, serviceVersion As String, factoryType As Type, Optional instanceType As Type = Nothing, Optional interfaceType As Type = Nothing)

Parameters

serviceName
String

Name of the service.

serviceVersion
String

Version of the service.

factoryType
Type

Factory class type.

instanceType
Type

Optional service object instance class type, if specified the type info will be passed to the factory.

interfaceType
Type

Optional interface type, if specified the type info will be passed to factory to determine the wrapper type.

Applies to