Tests if the given string can be used as a name for a numbering partition.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since:
2015
Syntax
C# |
---|
public static bool IsValidPartitionName(
string name,
out string message
) |
Visual Basic |
---|
Public Shared Function IsValidPartitionName ( _
name As String, _
<OutAttribute> ByRef message As String _
) As Boolean |
Visual C++ |
---|
public:
static bool IsValidPartitionName(
String^ name,
[OutAttribute] String^% message
) |
Parameters
- name
- Type: System..::..String
A name to validate.
- message
- Type: System..::..String%
Optional string to receive an error message to possibly show to the
end user in case the name is found invalid. This argument may be null.
Return Value
Returns True if the name can be used; or False if the string contains invalid characters.
Remarks
Exceptions
See Also