共用方式為


ArmMarketplaceModelFactory.MarketplaceSubscription Method

Definition

Initializes a new instance of MarketplaceSubscription.

public static Azure.ResourceManager.Marketplace.Models.MarketplaceSubscription MarketplaceSubscription (string id = default, string subscriptionId = default, string displayName = default, Azure.ResourceManager.Marketplace.Models.MarketplaceSubscriptionState? state = default);
static member MarketplaceSubscription : string * string * string * Nullable<Azure.ResourceManager.Marketplace.Models.MarketplaceSubscriptionState> -> Azure.ResourceManager.Marketplace.Models.MarketplaceSubscription
Public Shared Function MarketplaceSubscription (Optional id As String = Nothing, Optional subscriptionId As String = Nothing, Optional displayName As String = Nothing, Optional state As Nullable(Of MarketplaceSubscriptionState) = Nothing) As MarketplaceSubscription

Parameters

id
String

The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000.

subscriptionId
String

The subscription ID.

displayName
String

The subscription display name.

state
Nullable<MarketplaceSubscriptionState>

The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.

Returns

A new MarketplaceSubscription instance for mocking.

Applies to