IsValidSchemeName Method


Checks whether the name is valid for new generated scheme.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since: 2022

Syntax

C#
public bool IsValidSchemeName(
	string name
)
Visual Basic
Public Function IsValidSchemeName ( _
	name As String _
) As Boolean
Visual C++
public:
bool IsValidSchemeName(
	String^ name
)

Parameters

name
Type: System String

Return Value

Returns true if the name is valid for new generated scheme, false otherwise.

Remarks

The name should not be empty, or all spaces, or include prohibited characters or duplicated with existing schemes.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was null

See Also