记录有关可观测序列的下标和取消订阅的信息。
Namespace:Microsoft.Reactive.Testing
装配: Microsoft.Reactive.Testing.dll) 中的 Microsoft.Reactive.Testing (
语法
'Declaration
<SerializableAttribute> _
Public Structure Subscription _
Implements IEquatable(Of Subscription)
'Usage
Dim instance As Subscription
[SerializableAttribute]
public struct Subscription : IEquatable<Subscription>
[SerializableAttribute]
public value class Subscription : IEquatable<Subscription>
[<SealedAttribute>]
[<SerializableAttribute>]
type Subscription =
struct
interface IEquatable<Subscription>
end
JScript suports the use of structures, but not the declaration of new ones.
订阅类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
订阅 (Int64) | 使用订阅发生的指定虚拟时间初始化 Subscription 类的新实例。 |
![]() |
订阅 (Int64、Int64) | 使用订阅和取消订阅的指定虚拟时间初始化 Subscription 类的新实例。 |
顶部
属性
名称 | 说明 | |
---|---|---|
![]() |
订阅 | 获取订阅虚拟时间。 |
![]() |
取消订阅 | 获取取消订阅虚拟时间。 |
顶部
方法
名称 | 说明 | |
---|---|---|
![]() |
等于 (对象) | 检查给定对象是否等于当前实例。 (重写 ValueType.Equals (对象) .) |
![]() |
等于 (订阅) | 检查给定的订阅是否等于当前实例。 |
![]() |
完成 | (继承自 Object.) |
![]() |
GetHashCode | 计算当前实例的哈希代码。 (重写 ValueType.GetHashCode () .) |
![]() |
GetType | (继承自 Object.) |
![]() |
MemberwiseClone | (继承自 Object.) |
![]() |
ToString | 返回当前 实例的友好字符串表示形式。 (重写 ValueType.ToString () .) |
顶部
运算符
名称 | 说明 | |
---|---|---|
![]() ![]() |
等式 | 检查两个给定的订阅对象是否相等。 |
![]() ![]() |
不相等 | 检查两个给定的订阅对象是否不相等。 |
顶部
字段
名称 | 说明 | |
---|---|---|
![]() ![]() |
无限 | 指定无限虚拟时间值。 |
顶部
线程安全性
此类型的所有公共静态(Visual Basic 中共享的)成员都是线程安全的。 但不保证所有实例成员都是线程安全的。