ParameterResource
Handle
interface ParameterResource extends IExpressionValue, IManifestExpressionProvider, IResource, IValueProvider { asOptional(): ParameterResource; asRequired(): ParameterResource; setValueAsync( value?: string, cancellationToken?: cancellationToken): void; tryGetCurrentValue(): string; withCustomInput(options: ParameterCustomInputOptions): ParameterResource; withDescription( description: string, enableMarkdown?: boolean): ParameterResource;}6 members
Methods
Marks the parameter resource as optional.
asOptional(): ParameterResourceReturns
ParameterResource Marks the parameter resource as required.
asRequired(): ParameterResourceReturns
ParameterResource method
setValueAsync Sets or replaces the value for this parameter.
setValueAsync( value?: string, cancellationToken?: cancellationToken): voidParameters
valuestringoptionalThe value to use for this parameter.cancellationToken cancellationToken optionalThe cancellation token to observe while applying the value.method
tryGetCurrentValue Gets the current value for this parameter without waiting for unresolved input.
tryGetCurrentValue(): stringReturns
stringSets a custom input for the parameter resource from a polyglot AppHost.
withCustomInput(options: ParameterCustomInputOptions): ParameterResourceParameters
optionsParameterCustomInputOptions Options used to customize the input for the parameter.Returns
ParameterResource Sets the description of the parameter resource.
withDescription( description: string, enableMarkdown?: boolean): ParameterResourceParameters
descriptionstringThe parameter description.enableMarkdown booleanoptional= FalseA value indicating whether the description should be rendered as Markdown. `true` allows the description to contain Markdown elements such as links, text decoration and lists.Returns
ParameterResource