WorksetTable.CanDeleteWorkset Method

Indicates if a workset can be deleted.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)

Syntax

C#

public static bool CanDeleteWorkset(
	Document document,
	WorksetId worksetId,
	DeleteWorksetSettings deleteWorksetSettings
)

Parameters

document  Document
The document containing the worksets.
worksetId  WorksetId
The id of the workset to delete.
deleteWorksetSettings  DeleteWorksetSettings
The settings to delete a workset.

Return Value

Boolean
True if the workset can be deleted, false otherwise.

Exceptions

ExceptionCondition
ArgumentNullException A non-optional argument was null

Remarks

The workset can't be deleted in the following cases:

See Also

Reference

WorksetTable Class
Autodesk.Revit.DB Namespace