ContextItemManager.Unsubscribe Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Unsubscribe(Type, SubscribeContextCallback) |
When overridden in a derived class, removes a subscription. |
Unsubscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>) |
Removes a subscription. |
When overridden in a derived class, removes a subscription.
public:
abstract void Unsubscribe(Type ^ contextItemType, System::Activities::Presentation::SubscribeContextCallback ^ callback);
public abstract void Unsubscribe(Type contextItemType, System.Activities.Presentation.SubscribeContextCallback callback);
abstract member Unsubscribe : Type * System.Activities.Presentation.SubscribeContextCallback -> unit
Public MustOverride Sub Unsubscribe (contextItemType As Type, callback As SubscribeContextCallback)
Parameters
- contextItemType
- Type
The type of context item to remove the callback from.
- callback
- SubscribeContextCallback
The SubscribeContextCallback to remove.
Exceptions
callback
is null
.
Applies to
.NET Framework 4.8.1 และรุ่นอื่นๆ
ผลิตภัณฑ์ | เวอร์ชัน |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Removes a subscription.
public:
generic <typename TContextItemType>
where TContextItemType : System::Activities::Presentation::ContextItem void Unsubscribe(System::Activities::Presentation::SubscribeContextCallback<TContextItemType> ^ callback);
public void Unsubscribe<TContextItemType>(System.Activities.Presentation.SubscribeContextCallback<TContextItemType> callback) where TContextItemType : System.Activities.Presentation.ContextItem;
member this.Unsubscribe : System.Activities.Presentation.SubscribeContextCallback<'ContextItemType (requires 'ContextItemType :> System.Activities.Presentation.ContextItem)> -> unit (requires 'ContextItemType :> System.Activities.Presentation.ContextItem)
Public Sub Unsubscribe(Of TContextItemType As ContextItem) (callback As SubscribeContextCallback(Of TContextItemType))
Type Parameters
- TContextItemType
The type of context item to remove the callback from.
Parameters
The SubscribeContextCallback<TContextItemType> to remove.
Exceptions
callback
is null
.
Applies to
.NET Framework 4.8.1 และรุ่นอื่นๆ
ผลิตภัณฑ์ | เวอร์ชัน |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
คำติชม .NET
.NET เป็นโครงการโอเพนซอร์ส เลือกลิงก์เพื่อให้คำติชม: