Share via


NetworkFabricCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

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

Parameters

networkFabricName
String

Name of the Network Fabric.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

networkFabricName is null.

Applies to