Partilhar via


DockerBuildArg(String, Object) Constructor

Definition

Represents a name/value pair, used to satisfy the docker builder --build-arg <NAME>[=<VALUE>] command switch. For more information, see .

public DockerBuildArg (string name, object? value = default);
new Aspire.Hosting.ApplicationModel.DockerBuildArg : string * obj -> Aspire.Hosting.ApplicationModel.DockerBuildArg
Public Sub New (name As String, Optional value As Object = Nothing)

Parameters

name
String

The required name of the arg.

value
Object

The optional value of the arg, when omitted the value is populated from the corresponding environment variable.

Applies to