Share via


SupportTicketCommunicationCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}
  • Operation Id: Communications_Get
  • Default Api Version: 2024-04-01
  • Resource: SupportTicketCommunicationResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Support.SupportTicketCommunicationResource>> GetIfExistsAsync (string communicationName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Support.SupportTicketCommunicationResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Support.SupportTicketCommunicationResource>>
Public Overridable Function GetIfExistsAsync (communicationName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of SupportTicketCommunicationResource))

Parameters

communicationName
String

Communication name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

communicationName is an empty string, and was expected to be non-empty.

communicationName is null.

Applies to