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

Collection 构造函数

定义

重载

Collection()

初始化 Collection 类的新实例。

Collection(String, String, String, SystemData, String, String, String, Nullable<Boolean>, IList<String>, Nullable<Boolean>, Nullable<Int64>)

初始化 Collection 类的新实例。

Collection()

初始化 Collection 类的新实例。

public Collection ();
Public Sub New ()

适用于

Collection(String, String, String, SystemData, String, String, String, Nullable<Boolean>, IList<String>, Nullable<Boolean>, Nullable<Int64>)

初始化 Collection 类的新实例。

public Collection (string id = default, string name = default, string type = default, Microsoft.Azure.Management.Marketplace.Models.SystemData systemData = default, string collectionId = default, string collectionName = default, string claim = default, bool? allSubscriptions = default, System.Collections.Generic.IList<string> subscriptionsList = default, bool? enabled = default, long? numberOfOffers = default);
new Microsoft.Azure.Management.Marketplace.Models.Collection : string * string * string * Microsoft.Azure.Management.Marketplace.Models.SystemData * string * string * string * Nullable<bool> * System.Collections.Generic.IList<string> * Nullable<bool> * Nullable<int64> -> Microsoft.Azure.Management.Marketplace.Models.Collection
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional systemData As SystemData = Nothing, Optional collectionId As String = Nothing, Optional collectionName As String = Nothing, Optional claim As String = Nothing, Optional allSubscriptions As Nullable(Of Boolean) = Nothing, Optional subscriptionsList As IList(Of String) = Nothing, Optional enabled As Nullable(Of Boolean) = Nothing, Optional numberOfOffers As Nullable(Of Long) = Nothing)

参数

id
String

资源 ID。

name
String

资源的名称。

type
String

资源类型。

systemData
SystemData

与资源的创建和上次修改相关的元数据

collectionId
String

获取集合 ID。

collectionName
String

获取或设置集合名称。

claim
String

获取或设置与商业版计费帐户的关联。

allSubscriptions
Nullable<Boolean>

指示是否选择所有订阅 (=true) (=false) 。

subscriptionsList
IList<String>

获取或设置订阅 ID 列表。 空列表指示已选择所有订阅,null 表示未完成更新,显式列表指示显式选择的订阅。 插入时,null 被视为错误请求

enabled
Nullable<Boolean>

指示集合是启用还是禁用。

numberOfOffers
Nullable<Int64>

获取与集合关联的产品/服务数。

适用于