ProjectImageCollection.Get(String, CancellationToken) Method

Definition

Gets an image.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/images/{imageName}.
  • Operation Id. : ImageOperationGroup_GetByProject.
  • Default Api Version. : 2026-01-01-preview.
public virtual Azure.Response<Azure.ResourceManager.DevCenter.ProjectImageResource> Get(string imageName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevCenter.ProjectImageResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevCenter.ProjectImageResource>
Public Overridable Function Get (imageName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ProjectImageResource)

Parameters

imageName
String

The name of the image.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

imageName is null.

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

Applies to