Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Requests that the specified method is called when a service of the specified type is available.
Namespace: Microsoft.Windows.Design
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
Syntax
'Declaration
Public Sub Subscribe(Of TServiceType) ( _
callback As SubscribeServiceCallback(Of TServiceType) _
)
public void Subscribe<TServiceType>(
SubscribeServiceCallback<TServiceType> callback
)
public:
generic<typename TServiceType>
void Subscribe(
SubscribeServiceCallback<TServiceType>^ callback
)
member Subscribe :
callback:SubscribeServiceCallback<'TServiceType> -> unit
JScript does not support generic types or methods.
Type Parameters
- TServiceType
Parameters
- callback
Type: Microsoft.Windows.Design.SubscribeServiceCallback<TServiceType>
The method to invoke when the service is available.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | callback is nulla null reference (Nothing in Visual Basic). |
Remarks
If the service is already available, this specified method is called immediately.
.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
Microsoft.Windows.Design Namespace