Revit 2016 API |
SingleServerService..::..GetActiveServerId Method (Document) |
SingleServerService Class See Also |
Returns the Id of the server currently associated with the given document for the service.
Namespace: Autodesk.Revit.DB.ExternalService
Assembly: RevitAPI (in RevitAPI.dll) Version: 16.0.0.0 (16.0.0.0)
Since:
2013
Syntax
C# |
---|
public Guid GetActiveServerId( Document document ) |
Visual Basic |
---|
Public Function GetActiveServerId ( _ document As Document _ ) As Guid |
Visual C++ |
---|
public: Guid GetActiveServerId( Document^ document ) |
Parameters
- document
- Type: Autodesk.Revit.DB..::..Document
The document for which the server is being set as active.
Return Value
The Guid of the active server, or an invalid Guid if there is no active server assigned.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |