Gets the current main domain of the document.
Syntax
| C# | |
|---|
public string MainDomain {get;} |
Property Value
Type: System.String
A string that contains the current main domain.
Example
The following code example uses the
MainDomain property.
| C# | Copy Code |
|---|
// get document
Document doc = tab.MainDocument;
// get the main domain
string domain = doc.MainDomain; |
| PHP | Copy Code |
|---|
// get document
$doc = $tab->MainDocument;
// get the main domain
$domain = $doc->MainDomain; |
Requirements
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also