Share via


StreamingLocatorCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

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

Parameters

streamingLocatorName
String

The Streaming Locator name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

streamingLocatorName is null.

Applies to