Freigeben über


ArmComputeModelFactory.ComputeUsage Methode

Definition

Initialisiert eine neue instance von ComputeUsage.

public static Azure.ResourceManager.Compute.Models.ComputeUsage ComputeUsage (Azure.ResourceManager.Compute.Models.ComputeUsageUnit unit = default, int currentValue = 0, long limit = 0, Azure.ResourceManager.Compute.Models.ComputeUsageName name = default);
static member ComputeUsage : Azure.ResourceManager.Compute.Models.ComputeUsageUnit * int * int64 * Azure.ResourceManager.Compute.Models.ComputeUsageName -> Azure.ResourceManager.Compute.Models.ComputeUsage
Public Shared Function ComputeUsage (Optional unit As ComputeUsageUnit = Nothing, Optional currentValue As Integer = 0, Optional limit As Long = 0, Optional name As ComputeUsageName = Nothing) As ComputeUsage

Parameter

unit
ComputeUsageUnit

Eine Enumeration, die die Verbrauchseinheit beschreibt.

currentValue
Int32

Die aktuelle Verwendung der Ressource.

limit
Int64

Die maximal zulässige Nutzung der Ressource.

name
ComputeUsageName

Der Name des Verwendungstyps.

Gibt zurück

Eine neue ComputeUsage instance zum Simulieren.

Gilt für: