Returns an instance of an object that represents the external service with the given Id.
Namespace: Autodesk.Revit.DB.ExternalService
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public static ExternalService GetService( ExternalServiceId serviceId )
Parameters
- serviceId ExternalServiceId
- Id of the service.
Return Value
ExternalServiceThe instance of the service or NULL if it cannot be found.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |