Share via


ServiceManager.Unsubscribe Method (Type, SubscribeServiceCallback)

When overridden in a derived class, 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 MustOverride Sub Unsubscribe ( _
    serviceType As Type, _
    callback As SubscribeServiceCallback _
)
public abstract void Unsubscribe(
    Type serviceType,
    SubscribeServiceCallback callback
)
public:
virtual void Unsubscribe(
    Type^ serviceType, 
    SubscribeServiceCallback^ callback
) abstract
abstract Unsubscribe : 
        serviceType:Type * 
        callback:SubscribeServiceCallback -> unit 
public abstract function Unsubscribe(
    serviceType : Type, 
    callback : SubscribeServiceCallback
)

Parameters

  • serviceType
    Type: System.Type
    The type of service to unsubscribe from.

.NET Framework Security

See Also

Reference

ServiceManager Class

Unsubscribe Overload

Microsoft.Windows.Design Namespace

EditingContext

ContextItem

Subscribe

Publish

Other Resources

WPF Designer Extensibility