共用方式為


ServiceManager.Unsubscribe 方法

定義

多載

Unsubscribe(Type, SubscribeServiceCallback)

移除服務型別的訂閱。

Unsubscribe<TServiceType>(SubscribeServiceCallback<TServiceType>)

移除服務型別的訂閱。

Unsubscribe(Type, SubscribeServiceCallback)

移除服務型別的訂閱。

public:
 abstract void Unsubscribe(Type ^ serviceType, System::Activities::Presentation::SubscribeServiceCallback ^ callback);
public abstract void Unsubscribe (Type serviceType, System.Activities.Presentation.SubscribeServiceCallback callback);
abstract member Unsubscribe : Type * System.Activities.Presentation.SubscribeServiceCallback -> unit
Public MustOverride Sub Unsubscribe (serviceType As Type, callback As SubscribeServiceCallback)

參數

serviceType
Type

要移除訂閱的服務型別。

callback
SubscribeServiceCallback

要從訂閱移除的回呼物件。

例外狀況

serviceTypecallbacknull

適用於

Unsubscribe<TServiceType>(SubscribeServiceCallback<TServiceType>)

移除服務型別的訂閱。

public:
generic <typename TServiceType>
 void Unsubscribe(System::Activities::Presentation::SubscribeServiceCallback<TServiceType> ^ callback);
public void Unsubscribe<TServiceType> (System.Activities.Presentation.SubscribeServiceCallback<TServiceType> callback);
member this.Unsubscribe : System.Activities.Presentation.SubscribeServiceCallback<'ServiceType> -> unit
Public Sub Unsubscribe(Of TServiceType) (callback As SubscribeServiceCallback(Of TServiceType))

類型參數

TServiceType

要移除訂閱的服務型別。

參數

callback
SubscribeServiceCallback<TServiceType>

要從訂閱移除的回呼物件。

例外狀況

callbacknull

適用於