GetServersByType Method


Gets registered external resource servers which support the external resource type.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since: 2015

Syntax

C#
public static IList<IExternalResourceServer> GetServersByType(
	ExternalResourceType type
)
Visual Basic
Public Shared Function GetServersByType ( _
	type As ExternalResourceType _
) As IList(Of IExternalResourceServer)
Visual C++
public:
static IList<IExternalResourceServer^>^ GetServersByType(
	ExternalResourceType^ type
)

Parameters

type
Type: Autodesk.Revit.DB ExternalResourceType
The external resource type for the servers to match

Return Value

A list of matched external resource servers

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was null

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →