Freigeben über


CloudServiceOperatingSystemsOperationsExtensions.GetOSVersionAsync Methode

Definition

Ruft Eigenschaften einer Gastbetriebssystemversion ab, die in der XML-Dienstkonfiguration (.cscfg) für einen Clouddienst angegeben werden kann.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.OSVersion> GetOSVersionAsync (this Microsoft.Azure.Management.Compute.ICloudServiceOperatingSystemsOperations operations, string location, string osVersionName, System.Threading.CancellationToken cancellationToken = default);
static member GetOSVersionAsync : Microsoft.Azure.Management.Compute.ICloudServiceOperatingSystemsOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.OSVersion>
<Extension()>
Public Function GetOSVersionAsync (operations As ICloudServiceOperatingSystemsOperations, location As String, osVersionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of OSVersion)

Parameter

operations
ICloudServiceOperatingSystemsOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

location
String

Name des Speicherorts, zu dem sich die Betriebssystemversion bezieht.

osVersionName
String

Name der Betriebssystemversion.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: