Excerpt |
---|
Returns the document variable specified by name. |
Signature |
---|
C# | C# | Wiki Markup |
---|
{description}
{excerpt}Returns the document variable specified by name.{excerpt}
{signature:C#}
public System.String GetVariable(System.String name)
|
Signature |
---|
{signature}{signature:vb.net | vb.net | }
Public Function GetVariable(ByVal name As String) As String
|
...
The name of the variable.
Returns |
---|
The document variable specified by name. If the variable does not exist, GetVariable returns null. |
Example |
---|
Code Block |
---|
| csharp | csharp |
title | C# |
---|
{signature}
{parameters}
{param:name}The name of the variable.{param}
{returns}The document variable specified by name. If the variable does not exist, [GetVariable|Document.GetVariable(String)] returns null.{returns}
{example}{code:csharp|title=C#}
string docVariable = doc.GetVariable("var");
Code Block |
---|
{code}
{code:vb.net
vb.net | title | |title=vb.net
}
Dim docVariable As String = doc.GetVariable("var"){code}
{example}