Share via


ProjectAttachedNetworkConnectionCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks/{attachedNetworkConnectionName}
  • Operation Id: AttachedNetworks_GetByProject
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.DevCenter.ProjectAttachedNetworkConnectionResource>> GetIfExistsAsync (string attachedNetworkConnectionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.DevCenter.ProjectAttachedNetworkConnectionResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.DevCenter.ProjectAttachedNetworkConnectionResource>>
Public Overridable Function GetIfExistsAsync (attachedNetworkConnectionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of ProjectAttachedNetworkConnectionResource))

Parameters

attachedNetworkConnectionName
String

The name of the attached NetworkConnection.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

attachedNetworkConnectionName is null.

Applies to