Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

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.

Signature
C#C#
Wiki Markup
{description}
{excerpt}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.
{excerpt}
{signature:C#}
 public void SetVariable(System.String name, System.String val)
Signature
{signature}{signature:vb.net
vb.net
}
Public Sub SetVariable(ByVal name As String, ByVal val As String)
Parameters
{signature}
{parameters}
{param:name}The name of the variable.{param}
{param:val}The value of the variable.{param}
{example}{code:csharp|title=C#}
doc.SetVariable("platform", "Windows");
{code}
{code:vb.net
|title=vb.net
}
doc.SetVariable("platform", "Windows"){code}

{example}
Param
namename

The name of the variable.

Param
valval

The value of the variable.

Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle