Skip to end of metadata
Go to start of metadata

Description

Sets the value of the variable with the specified name. If the variable does not exist, setVariable creates a new variable. If the variable does exist, setVariable overwrites the existing variable.

C#
 public void SetVariable(System.String name, System.String val)
vb.net
Public Sub SetVariable(ByVal name As String, ByVal val As String)

Parameters

name
The name of the variable.
val
The value of the variable.

Examples

C#
doc.SetVariable("platform", "Windows");
vb.net
doc.SetVariable("platform", "Windows")
  • No labels