ContainerResourceBuilderExtensions.WithImageTag<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.