ProjectLocation.IsProjectLocationNameUnique
Method
Description:
Verifies that there is no existing ProjectLocation with the given name belonging to the given SiteLocation.
Verifies that there is no existing ProjectLocation with the given name belonging to the given SiteLocation.
Syntax
public static bool IsProjectLocationNameUnique(
Document document,
string name,
ElementId siteLocationId
)
Parameters
| Parameter | Type | Description |
|---|---|---|
| document | Document | The document to check. |
| name | String | The name to check. |
| siteLocationId | ElementId | The ElementId of the SiteLocation which the ProjectLocation belongs to. |
Return Value
| Type | Description |
|---|---|
| Boolean | True if the name is unused (among ProjectLocations). False otherwise. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |