ResourceExtensions.TryGetContainerImageName(IResource, String) 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.
Attempts to get the container image name from the given resource.
public static bool TryGetContainerImageName (this Aspire.Hosting.ApplicationModel.IResource resource, out string? imageName);
static member TryGetContainerImageName : Aspire.Hosting.ApplicationModel.IResource * string -> bool
<Extension()>
Public Function TryGetContainerImageName (resource As IResource, ByRef imageName As String) As Boolean
Parameters
- resource
- IResource
The resource to get the container image name from.
- imageName
- String
The container image name if found, otherwise null.
Returns
True if the container image name was found, otherwise false.