Identifies if the input string is valid for use as an object name in Revit.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.3.0.0 (26.3.0.0)
Syntax
C#
public static bool IsValidName( string string )
Parameters
- string String
- The name to validate.
Return Value
BooleanTrue if the name is valid for use as a name in Revit, false if it contains prohibited characters and is invalid.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |
