Restriction Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Restriction() |
Initializes a new instance of the Restriction class. |
Restriction(String, IList<String>, String) |
Initializes a new instance of the Restriction class. |
Restriction()
Initializes a new instance of the Restriction class.
public Restriction ();
Public Sub New ()
Applies to
Restriction(String, IList<String>, String)
Initializes a new instance of the Restriction class.
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)
Parameters
- type
- String
The type of restrictions. In this version, the only possible value for this is location.
The value of restrictions. If the restriction type is set to location, then this would be the different locations where the SKU is restricted.
- reasonCode
- String
The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". "QuotaId" is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. "NotAvailableForSubscription" is related to capacity at the datacenter. Possible values include: 'QuotaId', 'NotAvailableForSubscription'
Applies to
Azure SDK for .NET