ResourceExtensions.TryGetContainerImageName(IResource, String) Method

Definition

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.

Applies to