Bagikan melalui


AttachedNetworkConnectionCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

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

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