Subscription Class

 

Represents a subscription.

Namespace:   Microsoft.WindowsAzure.Messaging
Assembly:  Microsoft.WindowsAzure.Messaging.Managed (in Microsoft.WindowsAzure.Messaging.Managed.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.Messaging.Entity
    Microsoft.WindowsAzure.Messaging.Subscription

Syntax

public sealed class Subscription : Entity
public ref class Subscription sealed : Entity
[<Sealed>]
type Subscription = 
    class
        inherit Entity
    end
Public NotInheritable Class Subscription
    Inherits Entity

Constructors

Name Description
System_CAPS_pubmethod Subscription(String, String, String)

Initializes a new instance of the Subscription class.

Properties

Name Description
System_CAPS_pubproperty Connection

Gets or sets the connection string to the Microsoft Azure service.(Inherited from Entity.)

System_CAPS_pubproperty Name

Gets the name of the subscription.

System_CAPS_pubproperty Token

Gets or sets the token to the Azure service.(Inherited from Entity.)

System_CAPS_pubproperty TopicPath

Gets the path of the topic that this subscription belongs to.

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static CreateAsync(String, String, String)

Asynchronously creates a subscription with a specified name.

System_CAPS_pubmethodSystem_CAPS_static CreateAsync(String, String, String, SubscriptionSettings)

Asynchronously creates a subscription.

System_CAPS_pubmethodSystem_CAPS_static DeleteAsync(String, String, String)

Asynchronously deletes a subscription.

System_CAPS_pubmethod Dispose()

Releases all resources used by the current instance of the Entity class.(Inherited from Entity.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod OnMessage(Action<Message>)

Processes the subscription message.

System_CAPS_pubmethod OnMessage<T>(Action<T>)

Processes a subscription message.

System_CAPS_pubmethod ReceiveAsync<T>()

Asynchronously receives a subscription.

System_CAPS_pubmethod ReceiveAsync<T>(TimeSpan)

Asynchronously receives a subscription.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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

Microsoft.WindowsAzure.Messaging Namespace

Return to top