Subscription Structure
Records the information about subscripts to and unsubscriptions from observable sequences.
Namespace: Microsoft.Reactive.Testing
Assembly: Microsoft.Reactive.Testing (in Microsoft.Reactive.Testing.dll)
Syntax
'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.
The Subscription type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Subscription(Int64) | Initializes a new instance of the Subscription class with the specified virtual time the subscription occurred. | |
Subscription(Int64, Int64) | Initializes a new instance of the Subscription class with the specified virtual time the subscription and unsubscription occurred. |
Top
Properties
Name | Description | |
---|---|---|
Subscribe | Gets the subscription virtual time. | |
Unsubscribe | Gets the unsubscription virtual time. |
Top
Methods
Name | Description | |
---|---|---|
Equals(Object) | Checks whether the given object is equal to the current instance. (Overrides ValueType.Equals(Object).) | |
Equals(Subscription) | Checks whether the given subscription is equal to the current instance. | |
Finalize | (Inherited from Object.) | |
GetHashCode | Computes a hash code for the current instance. (Overrides ValueType.GetHashCode().) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | Returns a friendly string representation of the current instance. (Overrides ValueType.ToString().) |
Top
Operators
Name | Description | |
---|---|---|
Equality | Checks whether the two given subscription objects are equal. | |
Inequality | Checks whether the two given subscription objects are not equal. |
Top
Fields
Name | Description | |
---|---|---|
Infinite | Specifies the infinite virtual time value. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.