你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

NotificationHubClient.CreateWindowsTemplateRegistrationAsync 方法

定义

重载

CreateWindowsTemplateRegistrationAsync(String, String)

异步创建 Windows 模板注册。

CreateWindowsTemplateRegistrationAsync(String, String, IEnumerable<String>)

异步创建 Windows 模板注册。

CreateWindowsTemplateRegistrationAsync(String, String, CancellationToken)

异步创建 Windows 模板注册。

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

异步创建 Windows 模板注册。

CreateWindowsTemplateRegistrationAsync(String, String)

异步创建 Windows 模板注册。

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.WindowsTemplateRegistrationDescription> CreateWindowsTemplateRegistrationAsync (string channelUri, string xmlTemplate);
abstract member CreateWindowsTemplateRegistrationAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.WindowsTemplateRegistrationDescription>
override this.CreateWindowsTemplateRegistrationAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.WindowsTemplateRegistrationDescription>
Public Function CreateWindowsTemplateRegistrationAsync (channelUri As String, xmlTemplate As String) As Task(Of WindowsTemplateRegistrationDescription)

参数

channelUri
String

信道 URI。

xmlTemplate
String

XML 模板。

返回

用于完成异步操作的任务。

实现

适用于

CreateWindowsTemplateRegistrationAsync(String, String, IEnumerable<String>)

异步创建 Windows 模板注册。

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

参数

channelUri
String

信道 URI。

xmlTemplate
String

XML 模板。

tags
IEnumerable<String>

标记。

返回

用于完成异步操作的任务。

实现

适用于

CreateWindowsTemplateRegistrationAsync(String, String, CancellationToken)

异步创建 Windows 模板注册。

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.WindowsTemplateRegistrationDescription> CreateWindowsTemplateRegistrationAsync (string channelUri, string xmlTemplate, System.Threading.CancellationToken cancellationToken);
abstract member CreateWindowsTemplateRegistrationAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.WindowsTemplateRegistrationDescription>
override this.CreateWindowsTemplateRegistrationAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.WindowsTemplateRegistrationDescription>
Public Function CreateWindowsTemplateRegistrationAsync (channelUri As String, xmlTemplate As String, cancellationToken As CancellationToken) As Task(Of WindowsTemplateRegistrationDescription)

参数

channelUri
String

信道 URI。

xmlTemplate
String

XML 模板。

cancellationToken
CancellationToken

等待任务完成期间要观察的 CancellationToken

返回

用于完成异步操作的任务。

实现

适用于

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

异步创建 Windows 模板注册。

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

参数

channelUri
String

信道 URI。

xmlTemplate
String

XML 模板。

tags
IEnumerable<String>

标记。

cancellationToken
CancellationToken

等待任务完成期间要观察的 CancellationToken

返回

用于完成异步操作的任务。

实现

适用于