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: 21.0.0.0 (21.1.1.109)
Since:
2015
Syntax
C# |
---|
public static bool IsValidName(
string string
) |
Visual Basic |
---|
Public Shared Function IsValidName ( _
string As String _
) As Boolean |
Visual C++ |
---|
public:
static bool IsValidName(
String^ string
) |
Parameters
- string
- Type: System..::..String
The name to validate.
Return Value
True if the name is valid for use as a name in Revit, false if it contains prohibited characters and is invalid.
Remarks
Exceptions
See Also