次の方法で共有


ContainerResourceBuilderExtensions.WithImageTag<T> Method

Definition

Allows overriding the image tag on a container.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithImageTag<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, string tag) where T : Aspire.Hosting.ApplicationModel.ContainerResource;
static member WithImageTag : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.ContainerResource)> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.ContainerResource)> (requires 'T :> Aspire.Hosting.ApplicationModel.ContainerResource)
<Extension()>
Public Function WithImageTag(Of T As ContainerResource) (builder As IResourceBuilder(Of T), tag As String) As IResourceBuilder(Of T)

Type Parameters

T

Type of container resource.

Parameters

builder
IResourceBuilder<T>

Builder for the container resource.

tag
String

Tag value.

Returns

Applies to