Share via


NetworkDeviceSkuCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

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

Parameters

networkDeviceSkuName
String

Name of the Network Device SKU.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

networkDeviceSkuName is null.

Applies to