共用方式為


ArmStorageModelFactory.StorageUsage Method

Definition

Initializes a new instance of StorageUsage.

public static Azure.ResourceManager.Storage.Models.StorageUsage StorageUsage (Azure.ResourceManager.Storage.Models.StorageUsageUnit? unit = default, int? currentValue = default, int? limit = default, Azure.ResourceManager.Storage.Models.StorageUsageName name = default);
static member StorageUsage : Nullable<Azure.ResourceManager.Storage.Models.StorageUsageUnit> * Nullable<int> * Nullable<int> * Azure.ResourceManager.Storage.Models.StorageUsageName -> Azure.ResourceManager.Storage.Models.StorageUsage
Public Shared Function StorageUsage (Optional unit As Nullable(Of StorageUsageUnit) = Nothing, Optional currentValue As Nullable(Of Integer) = Nothing, Optional limit As Nullable(Of Integer) = Nothing, Optional name As StorageUsageName = Nothing) As StorageUsage

Parameters

unit
Nullable<StorageUsageUnit>

Gets the unit of measurement.

currentValue
Nullable<Int32>

Gets the current count of the allocated resources in the subscription.

limit
Nullable<Int32>

Gets the maximum count of the resources that can be allocated in the subscription.

name
StorageUsageName

Gets the name of the type of usage.

Returns

A new StorageUsage instance for mocking.

Applies to