ResourceExtensions.TryGetContainerImageName(IResource, String) Method

Definition

Attempts to get the container image name from the given resource.

C#
public static bool TryGetContainerImageName(this Aspire.Hosting.ApplicationModel.IResource resource, out string? imageName);

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

Proizvod Verzije
.NET Aspire 8.0.0, 9.0.0, 9.1.0