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 | |
---|---|---|
Subscription(String, String, String) | Initializes a new instance of the Subscription class. |
Properties
Name | Description | |
---|---|---|
Connection | Gets or sets the connection string to the Microsoft Azure service.(Inherited from Entity.) |
|
Name | Gets the name of the subscription. |
|
Token | Gets or sets the token to the Azure service.(Inherited from Entity.) |
|
TopicPath | Gets the path of the topic that this subscription belongs to. |
Methods
Name | Description | |
---|---|---|
CreateAsync(String, String, String) | Asynchronously creates a subscription with a specified name. |
|
CreateAsync(String, String, String, SubscriptionSettings) | Asynchronously creates a subscription. |
|
DeleteAsync(String, String, String) | Asynchronously deletes a subscription. |
|
Dispose() | Releases all resources used by the current instance of the Entity class.(Inherited from Entity.) |
|
Equals(Object) | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
OnMessage(Action<Message>) | Processes the subscription message. |
|
OnMessage<T>(Action<T>) | Processes a subscription message. |
|
ReceiveAsync<T>() | Asynchronously receives a subscription. |
|
ReceiveAsync<T>(TimeSpan) | Asynchronously receives a subscription. |
|
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