Share via


SynapsePrivateLinkHubCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

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

Parameters

privateLinkHubName
String

Name of the privateLinkHub.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

privateLinkHubName is null.

Applies to