NotificationHub Class

 

Represents a notification hub.

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.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
System_CAPS_pubmethod NotificationHub(String, String)

Initializes a new instance of the NotificationHub 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 Path

Gets or sets the path associated with the notification hub.

System_CAPS_pubproperty SecondaryTiles

Gets or sets the NotificationHub methods for secondary tiles.

System_CAPS_pubproperty TileId

Gets or sets the tile ID.

System_CAPS_pubproperty Token

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

Methods

Name Description
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 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.

System_CAPS_pubmethod RegisterNativeAsync(String)

Asynchronously registers the device for native notifications.

System_CAPS_pubmethod RegisterNativeAsync(String, IEnumerable<String>)

Asynchronously registers the device for native notifications.

System_CAPS_pubmethod RegisterTemplateAsync(String, String, String)

Asynchronously creates a new (or updates an existing) template registration.

System_CAPS_pubmethod RegisterTemplateAsync(String, String, String, IEnumerable<String>)

Asynchronously creates a new (or updates an existing) template registration.

System_CAPS_pubmethod RegisterTemplateAsync(String, XmlDocument, String)

Asynchronously creates a new (or updates an existing) template registration.

System_CAPS_pubmethod RegisterTemplateAsync(String, XmlDocument, String, IEnumerable<String>)

Asynchronously creates a new (or updates an existing) template registration.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod UnregisterAllAsync(String)

Asynchronously deletes all registrations for this application or secondary tile.

System_CAPS_pubmethod 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.

System_CAPS_pubmethod UnregisterNativeAsync()

Asynchronously unregisters the native registration on the application or secondary tiles. Note that if you have template registrations, they will not be deleted.

System_CAPS_pubmethod 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