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

Restriction 构造函数

定义

重载

Restriction()

初始化 Restriction 类的新实例。

Restriction(String, IList<String>, String)

初始化 Restriction 类的新实例。

Restriction()

初始化 Restriction 类的新实例。

public Restriction ();
Public Sub New ()

适用于

Restriction(String, IList<String>, String)

初始化 Restriction 类的新实例。

public Restriction (string type = default, System.Collections.Generic.IList<string> values = default, string reasonCode = default);
new Microsoft.Azure.Management.StorageCache.Models.Restriction : string * System.Collections.Generic.IList<string> * string -> Microsoft.Azure.Management.StorageCache.Models.Restriction
Public Sub New (Optional type As String = Nothing, Optional values As IList(Of String) = Nothing, Optional reasonCode As String = Nothing)

参数

type
String

限制的类型。 在此版本中,唯一可能的值为 location。

values
IList<String>

限制的值。 如果限制类型设置为 location,则这是限制 SKU 的不同位置。

reasonCode
String

限制的原因。 到目前为止,这可以是“QuotaId”或“NotAvailableForSubscription”。 当 SKU 具有 requiredQuotas 参数时,将设置“QuotaId”,因为订阅不属于该配额。 “NotAvailableForSubscription”与数据中心的容量相关。 可能的值包括:“QuotaId”、“NotAvailableForSubscription”

适用于