IWbsVariables.SetVariable (WbsVariableInfo) Method

Sets or creates a WBS variable with specified details.
Function SetVariable( _ 
ByVal variableInfo As WbsVariableInfo
) As Boolean
This language is not supported or no code example is available.
bool SetVariable( 
WbsVariableInfo variableInfo 
)
This language is not supported or no code example is available.

Parameters

variableInfo
WbsVariableInfo

The new properties of the variable.

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 variableInfo.

Exception type Condition

QdvApiException

A problem occurred.

ArgumentException

The WbsVariableInfo.Name of the variableInfo is invalid.

ArgumentNullException

The variableInfo is null reference (Nothing in Visual Basic).

Remarks
 

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

Version
 
Available since QDV 7.17.612.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition