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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
RequiresServiceAttribute Class
Microsoft.Windows.Design Namespace