ServiceManager.Unsubscribe<TServiceType> Method (SubscribeServiceCallback<TServiceType>)
Requests that the specified method is no longer 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 Unsubscribe(Of TServiceType) ( _
callback As SubscribeServiceCallback(Of TServiceType) _
)
public void Unsubscribe<TServiceType>(
SubscribeServiceCallback<TServiceType> callback
)
public:
generic<typename TServiceType>
void Unsubscribe(
SubscribeServiceCallback<TServiceType>^ callback
)
member Unsubscribe :
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 no longer invoke when the service is available.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | callback is nulla null reference (Nothing in Visual Basic). |
.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