Language

MachineLearningRegistryComponentContainerCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}.
  • Operation Id. : ComponentContainers_Get.
  • Default Api Version. : 2026-07-01.
public virtual Azure.NullableResponse<Azure.ResourceManager.MachineLearning.MachineLearningRegistryComponentContainerResource> GetIfExists(string componentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.MachineLearning.MachineLearningRegistryComponentContainerResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.MachineLearning.MachineLearningRegistryComponentContainerResource>
Public Overridable Function GetIfExists (componentName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of MachineLearningRegistryComponentContainerResource)

Parameters

componentName
String

Container name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

componentName is null.

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

Applies to