ภาษา

RuntimeBindingCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/workloadSpaces/{spaceName}/runtimeBindings/{bindingName}.
  • Operation Id. : RuntimeBindings_Get.
  • Default Api Version. : 2026-11-01-preview.
public virtual Azure.NullableResponse<Azure.ResourceManager.Compute.WorkloadManager.RuntimeBindingResource> GetIfExists(string bindingName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Compute.WorkloadManager.RuntimeBindingResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Compute.WorkloadManager.RuntimeBindingResource>
Public Overridable Function GetIfExists (bindingName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of RuntimeBindingResource)

Parameters

bindingName
String

The name of the RuntimeBinding.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

bindingName is null.

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

Applies to