INamespaceManager.CreateNotificationHubAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateNotificationHubAsync(NotificationHubDescription) |
Creates the notification hub asynchronously. |
CreateNotificationHubAsync(String) |
Creates a notification hub. |
CreateNotificationHubAsync(NotificationHubDescription, CancellationToken) |
Creates the notification hub asynchronously. |
CreateNotificationHubAsync(String, CancellationToken) |
Creates a notification hub. |
CreateNotificationHubAsync(NotificationHubDescription)
Creates the notification hub asynchronously.
public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationHubDescription> CreateNotificationHubAsync (Microsoft.Azure.NotificationHubs.NotificationHubDescription description);
abstract member CreateNotificationHubAsync : Microsoft.Azure.NotificationHubs.NotificationHubDescription -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationHubDescription>
Public Function CreateNotificationHubAsync (description As NotificationHubDescription) As Task(Of NotificationHubDescription)
Parameters
- description
- NotificationHubDescription
The notification hub description.
Returns
A task that represents the asynchronous create hub operation
Applies to
CreateNotificationHubAsync(String)
Creates a notification hub.
public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationHubDescription> CreateNotificationHubAsync (string hubName);
abstract member CreateNotificationHubAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationHubDescription>
Public Function CreateNotificationHubAsync (hubName As String) As Task(Of NotificationHubDescription)
Parameters
- hubName
- String
The notification hub description name.
Returns
An instance of the NotificationHubDescription class
Applies to
CreateNotificationHubAsync(NotificationHubDescription, CancellationToken)
Creates the notification hub asynchronously.
public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationHubDescription> CreateNotificationHubAsync (Microsoft.Azure.NotificationHubs.NotificationHubDescription description, System.Threading.CancellationToken cancellationToken);
abstract member CreateNotificationHubAsync : Microsoft.Azure.NotificationHubs.NotificationHubDescription * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationHubDescription>
Public Function CreateNotificationHubAsync (description As NotificationHubDescription, cancellationToken As CancellationToken) As Task(Of NotificationHubDescription)
Parameters
- description
- NotificationHubDescription
The notification hub description.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Returns
A task that represents the asynchronous create hub operation
Applies to
CreateNotificationHubAsync(String, CancellationToken)
Creates a notification hub.
public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationHubDescription> CreateNotificationHubAsync (string hubName, System.Threading.CancellationToken cancellationToken);
abstract member CreateNotificationHubAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationHubDescription>
Public Function CreateNotificationHubAsync (hubName As String, cancellationToken As CancellationToken) As Task(Of NotificationHubDescription)
Parameters
- hubName
- String
The notification hub description name.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Returns
An instance of the NotificationHubDescription class