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.

 public void SetVariable(System.String name, System.String val)
Public Sub SetVariable(ByVal name As String, ByVal val As String)

The name of the variable.

The value of the variable.

doc.SetVariable("platform", "Windows");
doc.SetVariable("platform", "Windows")