Share via


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

Exceptions

Exception Condition
ArgumentNullException

callback is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ServiceManager Class

Unsubscribe Overload

Microsoft.Windows.Design Namespace

EditingContext

ContextItem

Subscribe

Publish

Other Resources

WPF Designer Extensibility