NumberingSchema.IsValidPartitionName
Method
Description:
Tests if the given string can be used as a name for a numbering partition.
Tests if the given string can be used as a name for a numbering partition.
Remarks:
For a name to be considered valid it must contain only printable characters excluding any characters that may not be used in name of a file.
For a name to be considered valid it must contain only printable characters excluding any characters that may not be used in name of a file.
Parameters
| Parameter | Type | Description |
|---|---|---|
| name | String | A name to validate. |
| message | 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
| Type | Description |
|---|---|
| Boolean | Returns True if the name can be used; or False if the string contains invalid characters. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |