Share via


Collection Constructors

Definition

Overloads

Collection()

Initializes a new instance of the Collection class.

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

Initializes a new instance of the Collection class.

Collection()

Initializes a new instance of the Collection class.

public Collection ();
Public Sub New ()

Applies to

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

Initializes a new instance of the Collection class.

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)

Parameters

id
String

The resource ID.

name
String

The name of the resource.

type
String

The type of the resource.

systemData
SystemData

Metadata pertaining to creation and last modification of the resource

collectionId
String

Gets collection Id.

collectionName
String

Gets or sets collection name.

claim
String

Gets or sets the association with Commercial's Billing Account.

allSubscriptions
Nullable<Boolean>

Indicating whether all subscriptions are selected (=true) or not (=false).

subscriptionsList
IList<String>

Gets or sets subscription ids list. Empty list indicates all subscriptions are selected, null indicates no update is done, explicit list indicates the explicit selected subscriptions. On insert, null is considered as bad request

enabled
Nullable<Boolean>

Indicating whether the collection is enabled or disabled.

numberOfOffers
Nullable<Int64>

Gets the number of offers associated with the collection.

Applies to