Table of Contents

Class Parameter

Namespace
Acuit.Pinpoint.Workflows.Parameters
Assembly
Acuit.Pinpoint.Workflows.dll
public class Parameter : ParameterBase
Inheritance
Parameter
Inherited Members

Constructors

Parameter()

public Parameter()

Properties

DefaultValue

Gets or sets the optional default value for the parameter, which will be produced by Evaluate(string?, IParameterValueProvider) when the parameter value provider does cannot provide a value for this parameter. This value, which is typically specified via a string value in a workflow XAML file, will be converted to the type defined by Type.

public object? DefaultValue { get; set; }

Property Value

object

ResolvedType

Gets the type resolved from Type.

public override Type ResolvedType { get; }

Property Value

Type

Type

Gets or sets the parameter variable type, which defines how type conversions are performed. This defaults to object, which means no type conversions will be performed. ResolveType(object) is used to resolve this value to a specific type.

public object Type { get; set; }

Property Value

object

Exceptions

ArgumentNullException

When setting, the value is null.

InvalidOperationException

When setting, a type cannot be resolved from an object of the type of the value.

InvalidOperationException

When setting, a type cannot be resolved from the value of the value when it is a string.

Methods

Evaluate(string?, IParameterValueProvider)

public override object? Evaluate(string? sectionName, IParameterValueProvider parameterValueProvider)

Parameters

sectionName string
parameterValueProvider IParameterValueProvider

Returns

object

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.