ServiceAttribute Class

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

Namespace: Microsoft.Practices.CompositeUI
Assembly: Microsoft.Practices.CompositeUI (in microsoft.practices.compositeui.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple:=False)> _
Public NotInheritable Class ServiceAttribute
    Inherits Attribute
'Usage
Dim instance As ServiceAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false)] 
public sealed class ServiceAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple=false)] 
public ref class ServiceAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false) */ 
public final class ServiceAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false) 
public final class ServiceAttribute extends Attribute

Inheritance Hierarchy

System.Object
   System.Attribute
    Microsoft.Practices.CompositeUI.ServiceAttribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ServiceAttribute Members
Microsoft.Practices.CompositeUI Namespace