你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ResourceGroup 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ResourceGroup() |
初始化 ResourceGroup 类的新实例。 |
ResourceGroup(String, String, String, String, ResourceGroupProperties, String, IDictionary<String,String>) |
初始化 ResourceGroup 类的新实例。 |
ResourceGroup()
初始化 ResourceGroup 类的新实例。
public ResourceGroup ();
Public Sub New ()
适用于
ResourceGroup(String, String, String, String, ResourceGroupProperties, String, IDictionary<String,String>)
初始化 ResourceGroup 类的新实例。
public ResourceGroup (string location, string id = default, string name = default, string type = default, Microsoft.Azure.Management.ResourceManager.Models.ResourceGroupProperties properties = default, string managedBy = default, System.Collections.Generic.IDictionary<string,string> tags = default);
new Microsoft.Azure.Management.ResourceManager.Models.ResourceGroup : string * string * string * string * Microsoft.Azure.Management.ResourceManager.Models.ResourceGroupProperties * string * System.Collections.Generic.IDictionary<string, string> -> Microsoft.Azure.Management.ResourceManager.Models.ResourceGroup
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional properties As ResourceGroupProperties = Nothing, Optional managedBy As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing)
参数
- location
- String
资源组的位置。 创建资源组后无法更改。 它必须是受支持的 Azure 位置之一。
- id
- String
资源组的 ID。
- name
- String
资源组的名称。
- type
- String
资源组的类型。
- properties
- ResourceGroupProperties
资源组属性。
- managedBy
- String
管理此资源组的资源的 ID。
- tags
- IDictionary<String,String>
附加到资源组的标记。