ServiceManager.Unsubscribe 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
要從訂閱移除的回呼物件。
例外狀況
serviceType
或 callback
為 null
。
適用於
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
為 null
。