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

HubCollection.CreateOrUpdate 方法

定义

创建中心或更新现有中心。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}
  • 操作IdHubs_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.HubResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string hubName, Azure.ResourceManager.CustomerInsights.HubData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.CustomerInsights.HubData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.HubResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.CustomerInsights.HubData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.HubResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, hubName As String, data As HubData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of HubResource)

参数

waitUntil
WaitUntil

Completed 如果方法应等待返回,直到服务上长时间运行的操作完成; Started 如果它应在启动操作后返回,则为 。 有关长时间运行的操作的详细信息,请参阅 Azure.Core Long-Running 操作示例

hubName
String

中心的名称。

data
HubData

提供给 CreateOrUpdate 中心操作的参数。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

hubName 是一个空字符串,预期为非空。

hubNamedata 为 null。

适用于