你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ArmStorageModelFactory.StorageSkuRestriction 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 StorageSkuRestriction 的新实例。
public static Azure.ResourceManager.Storage.Models.StorageSkuRestriction StorageSkuRestriction (string restrictionType = default, System.Collections.Generic.IEnumerable<string> values = default, Azure.ResourceManager.Storage.Models.StorageRestrictionReasonCode? reasonCode = default);
static member StorageSkuRestriction : string * seq<string> * Nullable<Azure.ResourceManager.Storage.Models.StorageRestrictionReasonCode> -> Azure.ResourceManager.Storage.Models.StorageSkuRestriction
Public Shared Function StorageSkuRestriction (Optional restrictionType As String = Nothing, Optional values As IEnumerable(Of String) = Nothing, Optional reasonCode As Nullable(Of StorageRestrictionReasonCode) = Nothing) As StorageSkuRestriction
参数
- restrictionType
- String
限制的类型。 到目前为止,只有可能的值是位置。
- values
- IEnumerable<String>
限制的值。 如果限制类型设置为 location。 这将是限制 SKU 的不同位置。
- reasonCode
- Nullable<StorageRestrictionReasonCode>
限制的原因。 到目前为止,这可以是“QuotaId”或“NotAvailableForSubscription”。 当 SKU 具有 requiredQuotas 参数时,将设置配额 ID,因为订阅不属于该配额。 “NotAvailableForSubscription”与 DC 的容量相关。
返回
用于模拟的新 StorageSkuRestriction 实例。