Freigeben über


SupportTicketFileCollection.GetIfExists(String, CancellationToken) Methode

Definition

Versucht, Details für diese Ressource aus dem Dienst abzurufen.

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.Support/fileWorkspaces/{fileWorkspaceName}/files/{fileName}
  • Vorgang IdFiles_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.Support.SupportTicketFileResource> GetIfExists (string fileName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Support.SupportTicketFileResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Support.SupportTicketFileResource>
Public Overridable Function GetIfExists (fileName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of SupportTicketFileResource)

Parameter

fileName
String

Dateiname.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

fileName ist NULL.

Gilt für: