Share via


IResourceContainerImageBuilder.TagImageAsync Method

Definition

Tags an existing container image with a new target name.

public System.Threading.Tasks.Task TagImageAsync(string localImageName, string targetImageName, System.Threading.CancellationToken cancellationToken = default);
abstract member TagImageAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function TagImageAsync (localImageName As String, targetImageName As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

localImageName
String

The name of the local image to tag.

targetImageName
String

The target name for the image tag.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to