ISubscriptionToken 接口

定义

表示接口,其由对象执行,并且可用于取消订阅监听程序。Represents an interface that is implemented by an object and that can be used to unsubscribe listeners.

public interface class ISubscriptionToken
public interface ISubscriptionToken
type ISubscriptionToken = interface
Public Interface ISubscriptionToken

属性

IsActive

返回一个值,该值指示订阅当前是否为活动的。Returns a value that indicates whether the subscription is currently active.

方法

Unsubscribe()

从该事件的一个读取器中取消预订。Unsubscribes a listener from the event.

适用于