Share via


RequiresServiceAttribute Constructor

Initializes a new instance of the RequiresServiceAttribute class.

Namespace:  Microsoft.Windows.Design
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public Sub New ( _
    serviceType As Type _
)
public RequiresServiceAttribute(
    Type serviceType
)
public:
RequiresServiceAttribute(
    Type^ serviceType
)
new : 
        serviceType:Type -> RequiresServiceAttribute
public function RequiresServiceAttribute(
    serviceType : Type
)

Parameters

  • serviceType
    Type: System.Type
    The type of service the class requires.

Remarks

This attribute indicates that the class relies on the specified service, and the class is not instantiated until the service is available.

.NET Framework Security

See Also

Reference

RequiresServiceAttribute Class

Microsoft.Windows.Design Namespace

RequiresContextItemAttribute

UsesItemPolicyAttribute

PrimarySelectionPolicy

FeatureProvider

Other Resources

Feature Providers and Feature Connectors

Understanding WPF Designer Extensibility