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

ArmMarketplaceModelFactory.MarketplaceSubscription 方法

定义

初始化 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

参数

id
String

订阅的完全限定 ID。 例如,/subscriptions/000000000-0000-0000-0000-00000000000000。

subscriptionId
String

订阅的 ID。

displayName
String

订阅显示名称。

state
Nullable<MarketplaceSubscriptionState>

订阅状态。 可能的值为 Enabled、Warned、PastDue、Disabled 和 Deleted。

返回

用于模拟的新 MarketplaceSubscription 实例。

适用于