Checks if the given workset name is unique in the document.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 20.0.0.0 (20.0.0.377)
Since: 2015 Subscription Update
Syntax
| C# |
|---|
public static bool IsWorksetNameUnique( Document aDoc, string name ) |
| Visual Basic |
|---|
Public Shared Function IsWorksetNameUnique ( _ aDoc As Document, _ name As String _ ) As Boolean |
| Visual C++ |
|---|
public: static bool IsWorksetNameUnique( Document^ aDoc, String^ name ) |
Parameters
- aDoc
- Type: Autodesk.Revit.DB..::..Document
The document in which the workset is accessed.
- name
- Type: System..::..String
The workset name.
Return Value
True if this given workset name is unique in the document, false otherwise.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |