Lingua

ValidationTestVersionCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.PlatformValidation/validationTests/{validationTestName}/versions/{version}.
  • Operation Id. : ValidationTestVersions_Get.
  • Default Api Version. : 2026-08-01-preview.
public virtual Azure.NullableResponse<Azure.ResourceManager.PlatformValidation.ValidationTestVersionResource> GetIfExists(string version, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.PlatformValidation.ValidationTestVersionResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.PlatformValidation.ValidationTestVersionResource>
Public Overridable Function GetIfExists (version As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ValidationTestVersionResource)

Parameters

version
String

The name of the ValidationTestVersion.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

version is null.

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

Applies to