Freigeben über


CloudServiceRoleInstanceCollection.ExistsAsync Methode

Definition

Überprüft, ob die Ressource in Azure vorhanden ist.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}
  • Vorgang IdCloudServiceRoleInstances_Get
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync (string roleInstanceName, Azure.ResourceManager.Compute.Models.InstanceViewType? expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ExistsAsync : string * Nullable<Azure.ResourceManager.Compute.Models.InstanceViewType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.ExistsAsync : string * Nullable<Azure.ResourceManager.Compute.Models.InstanceViewType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function ExistsAsync (roleInstanceName As String, Optional expand As Nullable(Of InstanceViewType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))

Parameter

roleInstanceName
String

Name der rolle instance.

expand
Nullable<InstanceViewType>

Der expand-Ausdruck, der auf den Vorgang angewendet werden soll. "UserData" wird für Clouddienste nicht unterstützt.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

roleInstanceName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

roleInstanceName ist NULL.

Gilt für: