共用方式為


NotificationHubClient.CreateFcmTemplateRegistrationAsync Method

Definition

Overloads

CreateFcmTemplateRegistrationAsync(String, String)

Asynchronously creates FCM template registration.

CreateFcmTemplateRegistrationAsync(String, String, IEnumerable<String>)

Asynchronously creates FCM template registration.

CreateFcmTemplateRegistrationAsync(String, String, CancellationToken)

Asynchronously creates FCM template registration.

CreateFcmTemplateRegistrationAsync(String, String, IEnumerable<String>, CancellationToken)

Asynchronously creates FCM template registration.

CreateFcmTemplateRegistrationAsync(String, String)

Asynchronously creates FCM template registration.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.FcmTemplateRegistrationDescription> CreateFcmTemplateRegistrationAsync (string fcmRegistrationId, string jsonPayload);
abstract member CreateFcmTemplateRegistrationAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.FcmTemplateRegistrationDescription>
override this.CreateFcmTemplateRegistrationAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.FcmTemplateRegistrationDescription>
Public Function CreateFcmTemplateRegistrationAsync (fcmRegistrationId As String, jsonPayload As String) As Task(Of FcmTemplateRegistrationDescription)

Parameters

fcmRegistrationId
String

The FCM registration ID.

jsonPayload
String

The JSON payload.

Returns

The task that completes the asynchronous operation.

Implements

Applies to

CreateFcmTemplateRegistrationAsync(String, String, IEnumerable<String>)

Asynchronously creates FCM template registration.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.FcmTemplateRegistrationDescription> CreateFcmTemplateRegistrationAsync (string fcmRegistrationId, string jsonPayload, System.Collections.Generic.IEnumerable<string> tags);
abstract member CreateFcmTemplateRegistrationAsync : string * string * seq<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.FcmTemplateRegistrationDescription>
override this.CreateFcmTemplateRegistrationAsync : string * string * seq<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.FcmTemplateRegistrationDescription>
Public Function CreateFcmTemplateRegistrationAsync (fcmRegistrationId As String, jsonPayload As String, tags As IEnumerable(Of String)) As Task(Of FcmTemplateRegistrationDescription)

Parameters

fcmRegistrationId
String

The FCM registration ID.

jsonPayload
String

The JSON payload.

tags
IEnumerable<String>

The tags.

Returns

The task that completes the asynchronous operation.

Implements

Applies to

CreateFcmTemplateRegistrationAsync(String, String, CancellationToken)

Asynchronously creates FCM template registration.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.FcmTemplateRegistrationDescription> CreateFcmTemplateRegistrationAsync (string fcmRegistrationId, string jsonPayload, System.Threading.CancellationToken cancellationToken);
abstract member CreateFcmTemplateRegistrationAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.FcmTemplateRegistrationDescription>
override this.CreateFcmTemplateRegistrationAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.FcmTemplateRegistrationDescription>
Public Function CreateFcmTemplateRegistrationAsync (fcmRegistrationId As String, jsonPayload As String, cancellationToken As CancellationToken) As Task(Of FcmTemplateRegistrationDescription)

Parameters

fcmRegistrationId
String

The FCM registration ID.

jsonPayload
String

The JSON payload.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

The task that completes the asynchronous operation.

Implements

Applies to

CreateFcmTemplateRegistrationAsync(String, String, IEnumerable<String>, CancellationToken)

Asynchronously creates FCM template registration.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.FcmTemplateRegistrationDescription> CreateFcmTemplateRegistrationAsync (string fcmRegistrationId, string jsonPayload, System.Collections.Generic.IEnumerable<string> tags, System.Threading.CancellationToken cancellationToken);
abstract member CreateFcmTemplateRegistrationAsync : string * string * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.FcmTemplateRegistrationDescription>
override this.CreateFcmTemplateRegistrationAsync : string * string * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.FcmTemplateRegistrationDescription>
Public Function CreateFcmTemplateRegistrationAsync (fcmRegistrationId As String, jsonPayload As String, tags As IEnumerable(Of String), cancellationToken As CancellationToken) As Task(Of FcmTemplateRegistrationDescription)

Parameters

fcmRegistrationId
String

The FCM registration ID.

jsonPayload
String

The JSON payload.

tags
IEnumerable<String>

The tags.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

The task that completes the asynchronous operation.

Implements

Applies to