NotificationHub Class
Represents a notification hub.
Namespace: Microsoft.WindowsAzure.Messaging
Assembly: Microsoft.WindowsAzure.Messaging (in Microsoft.WindowsAzure.Messaging.dll)
Inheritance Hierarchy
System.Object
Microsoft.WindowsAzure.Messaging.Entity
Microsoft.WindowsAzure.Messaging.NotificationHub
Syntax
public sealed class NotificationHub : Entity
public ref class NotificationHub sealed : Entity
[<Sealed>]
type NotificationHub =
class
inherit Entity
end
Public NotInheritable Class NotificationHub
Inherits Entity
Constructors
Name | Description | |
---|---|---|
NotificationHub(String, String) | Initializes a new instance of the NotificationHub class. |
Properties
Name | Description | |
---|---|---|
Connection | Gets or sets the connection string to the Microsoft Azure service.(Inherited from Entity.) |
|
Path | Gets or sets the path associated with the notification hub. |
Methods
Name | Description | |
---|---|---|
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.) |
|
RegisterAsync(Registration) | Creates a new registration (or updates an existing one) as specified in the registration parameter. Depending upon the type of the registration parameter (Registration or TemplateRegistration), the registration of a native or template notification is created or updated. |
|
RegisterNativeAsync(String) | Asynchronously registers the device for native notifications. |
|
RegisterNativeAsync(String, IEnumerable<String>) | Asynchronously registers the device for native notifications. |
|
RegisterTemplateAsync(String, String, String) | Asynchronously creates a new (or updates an existing) template registration. |
|
RegisterTemplateAsync(String, String, String, IEnumerable<String>) | Asynchronously creates a new (or updates an existing) template registration. |
|
ToString() | (Inherited from Object.) |
|
UnregisterAllAsync(String) | Asynchronously deletes all registrations for this application or secondary tile. |
|
UnregisterAsync(Registration) | Asynchronously deletes the registration identified by the registration object specified by the registration parameter. Note that the registration object must have a non-null RegistrationId property. |
|
UnregisterNativeAsync() | Asynchronously unregisters the native registration on the application or secondary tiles. Note that if you have template registrations, they will not be deleted. |
|
UnregisterTemplateAsync(String) | Asynchronously unregisters the template with the specified name on the application or secondary tiles. Note that if you have other templates or a native registration, they will not be deleted. |
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