Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ParameterResource.SetValueAsync

Method
📦 Aspire.Hosting v17.0.0
type ParameterResource interface {
// ... omitted for brevity
SetValueAsync(options ...*SetValueAsyncOptions) error
}

Signature

methodSetValueAsync
Sets or replaces the value for this parameter.
SetValueAsync(options ...*SetValueAsyncOptions) error
options...*SetValueAsyncOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*SetValueAsyncOptions argument.

Value*stringThe value to use for this parameter.
CancellationToken*CancellationTokenThe cancellation token to observe while applying the value.
error

A task that completes when the value has been applied and observers have processed the change.

Returns error.

Defined on

This method is defined on the following type: