Share via


TimeSeriesDatabaseConnectionCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

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

Parameters

timeSeriesDatabaseConnectionName
String

Name of time series database connection.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

timeSeriesDatabaseConnectionName is null.

Applies to