Condividi tramite


ServiceFactoryRegistrationAttribute Class

Definition

Describes a mapping from service moniker to internal service factory type and extension part instance type.

[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
public class ServiceFactoryRegistrationAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)>]
type ServiceFactoryRegistrationAttribute = class
    inherit Attribute
Public Class ServiceFactoryRegistrationAttribute
Inherits Attribute
Inheritance
ServiceFactoryRegistrationAttribute
Attributes

Constructors

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

Initializes a new instance of the ServiceFactoryRegistrationAttribute class.

Properties

FactoryType

Gets the service factory type.

InstanceType

Gets the service object instance type.

InterfaceType

Gets the target interface type for this service moniker, should be specified if instance type is implementing multiple interfaces.

Moniker

Gets the service moniker.

Applies to