| Revit 2019.2 API |
| MEPAnalyticalConnectionType..::..IsNameUnused Method |
| MEPAnalyticalConnectionType Class See Also |
Checks if this is an unused name.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 19.0.0.0 (19.2.0.66)
Since:
2018
Syntax
| C# |
|---|
public static bool IsNameUnused( Document doc, string name ) |
| Visual Basic |
|---|
Public Shared Function IsNameUnused ( _ doc As Document, _ name As String _ ) As Boolean |
| Visual C++ |
|---|
public: static bool IsNameUnused( Document^ doc, String^ name ) |
Parameters
- doc
- Type: Autodesk.Revit.DB..::..Document
The document.
- name
- Type: System..::..String
The name to be verified.
Return Value
True if not used by an existing analytical connection type in this document, false if used.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |