共用方式為


Policy 建構函式

定義

多載

Policy()

初始化 Policy 類別的新實例。

Policy(String, String, String, String, String, String)

初始化 Policy 類別的新實例。

Policy()

初始化 Policy 類別的新實例。

public Policy ();
Public Sub New ()

適用於

Policy(String, String, String, String, String, String)

初始化 Policy 類別的新實例。

public Policy (string id = default, string name = default, string type = default, string marketplacePurchases = default, string reservationPurchases = default, string viewCharges = default);
new Microsoft.Azure.Management.Billing.Models.Policy : string * string * string * string * string * string -> Microsoft.Azure.Management.Billing.Models.Policy
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional marketplacePurchases As String = Nothing, Optional reservationPurchases As String = Nothing, Optional viewCharges As String = Nothing)

參數

id
String

資源識別碼。

name
String

資源名稱。

type
String

資源類型。

marketplacePurchases
String

控制是否允許 Azure Marketplace 購買計費設定檔的原則。 可能的值包括:'AllAllowed'、'OnlyFreeAllowed'、'NotAllowed'

reservationPurchases
String

控制帳單設定檔是否允許 Azure 保留購買的原則。 可能的值包括:'Allowed'、'NotAllowed'

viewCharges
String

控制具有 Azure RBAC 訂用帳戶存取權的使用者是否可以檢視其費用的原則。 可能的值包括:'Allowed'、'NotAllowed'

適用於