Share via


ServiceAttribute Members

Indicates that a class should be automatically registered as a service into the application's root WorkItem.

The following tables list the members exposed by the ServiceAttribute type.

Public Constructors

  Name Description
Public method ServiceAttribute Overloaded.  

Top

Public Properties

  Name Description
Public property AddOnDemand Specifies that the service instance will be created and added to the container upon request of that service (delayed creation).
Public property RegisterAs The service type implemented by the attributed class. This is the type that will be used to register the service with the WorkItem.
Public property TypeId  (Inherited from Attribute.)

Top

Public Methods

(see also Protected Methods )

  Name Description
Public method Equals  Overloaded. (Inherited from Attribute.)
Public method Static GetCustomAttribute  Overloaded. (Inherited from Attribute.)
Public method Static GetCustomAttributes  Overloaded. (Inherited from Attribute.)
Public method GetHashCode  (Inherited from Attribute.)
Public method GetType  (Inherited from Object.)
Public method IsDefaultAttribute  (Inherited from Attribute.)
Public method Static IsDefined  Overloaded. (Inherited from Attribute.)
Public method Match  (Inherited from Attribute.)
Public method Static ReferenceEquals  (Inherited from Object.)
Public method ToString  (Inherited from Object.)

Top

Protected Methods

  Name Description
Protected method Finalize  (Inherited from Object.)
Protected method MemberwiseClone  (Inherited from Object.)

Top

See Also

Reference

ServiceAttribute Class
Microsoft.Practices.CompositeUI Namespace