Share via


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
Public method Subscription(Int64) Initializes a new instance of the Subscription class with the specified virtual time the subscription occurred.
Public method 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
Public property Subscribe Gets the subscription virtual time.
Public property Unsubscribe Gets the unsubscription virtual time.

Top

Methods

  Name Description
Public method Equals(Object) Checks whether the given object is equal to the current instance. (Overrides ValueType.Equals(Object).)
Public method Equals(Subscription) Checks whether the given subscription is equal to the current instance.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode Computes a hash code for the current instance. (Overrides ValueType.GetHashCode().)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Returns a friendly string representation of the current instance. (Overrides ValueType.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Equality Checks whether the two given subscription objects are equal.
Public operatorStatic member Inequality Checks whether the two given subscription objects are not equal.

Top

Fields

  Name Description
Public fieldStatic member 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.

See Also

Reference

Microsoft.Reactive.Testing Namespace