IWbsVariables.SetVariable (String, Object, VariableType) Method

Sets or creates a WBS variable.
Function SetVariable( _ 
ByVal variableName As String, _ 
ByVal variableValue As Object, _ 
ByVal variableType As VariableType
) As Boolean
This language is not supported or no code example is available.
bool SetVariable( 
string variableName
object variableValue
VariableType variableType 
)
This language is not supported or no code example is available.

Parameters

variableName
string

The name of the WBS variable.

variableValue
object

The variable value to be set.

variableType
VariableType

The type of the variable to be set.

Return Value

bool

A value indicating whether the variable was really changed or created. false if no change was done, i.e. the variable already existed and its value and type were the same as in supplied parameters.

Exception type Condition

QdvApiException

A problem occurred.

ArgumentException

The variableName is invalid.

Remarks
 

This method creates a new variable if it doesn't exist yet.

The variable comment is set to an empty string.

Version
 
Available since QDV 7.17.612.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition