Skip to content
DocsTry Aspire
DocsTry

ContainerResource Constructors

ClassConstructors1 member
A resource that represents a specified container.
A resource that represents a specified container.
public class ContainerResource
{
public ContainerResource(
string name,
string? entrypoint = null)
{
// ...
}
}
namestringThe name of the resource.
entrypointstring?optionalAn optional container entrypoint.