Skip to content
DocsTry Aspire
DocsTry

withArgs

Method
📦 Aspire.Hosting v13.4.0
interface ContainerResource {
// ... omitted for brevity
withArgs(args: string[]): IResourceWithArgs;
}

Signature

methodwithArgsbuilder
Adds arguments to be passed to a resource that supports arguments when it is launched.
withArgs(args: string[]): IResourceWithArgs
argsstring[]
IResourceWithArgs

Applies to

This method applies to the following types: