Watch Aspire live streamsDocsTry Aspire

ContainerImageConfigInspectionResult Methods

ClassMethods3 members
Represents the result of inspecting a container image configuration.
Creates a failed image configuration inspection result.
public sealed class ContainerImageConfigInspectionResult
{
public static ContainerImageConfigInspectionResult Failure(
string errorMessage,
string? rawJson = null)
{
// ...
}
}
errorMessagestringThe failure description.
rawJsonstring?optionalThe runtime-native JSON returned by the inspection command, when available.
ContainerImageConfigInspectionResultA failed image configuration inspection result.
Creates a successful image configuration inspection result.
public sealed class ContainerImageConfigInspectionResult
{
public static ContainerImageConfigInspectionResult Success(
ContainerImageConfig config,
string? rawJson = null)
{
// ...
}
}
configContainerImageConfigThe inspected image configuration.
rawJsonstring?optionalThe runtime-native JSON returned by the inspection command, when available.
ContainerImageConfigInspectionResultA successful image configuration inspection result.
TryGetConfig(ContainerImageConfig?)Section titled TryGetConfig(ContainerImageConfig?)bool
Attempts to retrieve the typed image configuration.
public sealed class ContainerImageConfigInspectionResult
{
public bool TryGetConfig(
out ContainerImageConfig? config)
{
// ...
}
}
configContainerImageConfig?The image configuration when inspection succeeded.
booltrue when typed configuration metadata is available; otherwise, false.