ContainerResourceBuilderExtensions.WithImageSHA256<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 setting the image to a specific sha256 on a container.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithImageSHA256<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, string sha256) where T : Aspire.Hosting.ApplicationModel.ContainerResource;
static member WithImageSHA256 : 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 WithImageSHA256(Of T As ContainerResource) (builder As IResourceBuilder(Of T), sha256 As String) As IResourceBuilder(Of T)
Type Parameters
- T
Type of container resource.
Parameters
- builder
- IResourceBuilder<T>
Builder for the container resource.
- sha256
- String
Registry value.
Returns
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for