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

Resource 构造函数

定义

重载

Resource()

初始化 Resource 类的新实例。

Resource(String, Sku, IDictionary<String,String>, ResourceIdentity)

初始化 Resource 类的新实例。

Resource()

初始化 Resource 类的新实例。

public Resource ();
Public Sub New ()

适用于

Resource(String, Sku, IDictionary<String,String>, ResourceIdentity)

初始化 Resource 类的新实例。

public Resource (string location, Microsoft.Azure.Management.DataBox.Models.Sku sku, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.DataBox.Models.ResourceIdentity identity = default);
new Microsoft.Azure.Management.DataBox.Models.Resource : string * Microsoft.Azure.Management.DataBox.Models.Sku * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.DataBox.Models.ResourceIdentity -> Microsoft.Azure.Management.DataBox.Models.Resource
Public Sub New (location As String, sku As Sku, Optional tags As IDictionary(Of String, String) = Nothing, Optional identity As ResourceIdentity = Nothing)

参数

location
String

资源的位置。 这是受支持和注册的 Azure 区域之一, (例如美国西部、美国东部、东南亚等) 。 资源的区域在创建后无法更改,但如果在更新时指定了相同的区域,则请求将成功。

sku
Sku

SKU 类型。

tags
IDictionary<String,String>

描述资源的键值对的列表。 在查看此资源和为此资源分组(跨资源组)时,可以使用这些标记。

identity
ResourceIdentity

资源的 Msi 标识

适用于