Compartilhar via


ArmCognitiveServicesModelFactory.CognitiveServicesSkuRestrictions Método

Definição

Inicializa uma nova instância de CognitiveServicesSkuRestrictions.

public static Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesSkuRestrictions CognitiveServicesSkuRestrictions (Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesSkuRestrictionsType? restrictionsType = default, System.Collections.Generic.IEnumerable<string> values = default, Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesSkuRestrictionInfo restrictionInfo = default, Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesSkuRestrictionReasonCode? reasonCode = default);
static member CognitiveServicesSkuRestrictions : Nullable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesSkuRestrictionsType> * seq<string> * Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesSkuRestrictionInfo * Nullable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesSkuRestrictionReasonCode> -> Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesSkuRestrictions
Public Shared Function CognitiveServicesSkuRestrictions (Optional restrictionsType As Nullable(Of CognitiveServicesSkuRestrictionsType) = Nothing, Optional values As IEnumerable(Of String) = Nothing, Optional restrictionInfo As CognitiveServicesSkuRestrictionInfo = Nothing, Optional reasonCode As Nullable(Of CognitiveServicesSkuRestrictionReasonCode) = Nothing) As CognitiveServicesSkuRestrictions

Parâmetros

restrictionsType
Nullable<CognitiveServicesSkuRestrictionsType>

O tipo de restrições.

values
IEnumerable<String>

O valor das restrições. Se o tipo de restrição estiver definido como local. Esses seriam locais diferentes em que o SKU é restrito.

restrictionInfo
CognitiveServicesSkuRestrictionInfo

As informações sobre a restrição em que o SKU não pode ser usado.

reasonCode
Nullable<CognitiveServicesSkuRestrictionReasonCode>

O motivo da restrição.

Retornos

Uma nova CognitiveServicesSkuRestrictions instância para simulação.

Aplica-se a