.NET Framework Class Library
DataEntrHelper.IsValidFolderName Method
|
<< Click to Display Table of Contents >> Navigation: MwPDMApi Namespace > DataEntrHelper Class > DataEntrHelper Methods > .NET Framework Class Library |
Validates a folder name to ensure it does not contain invalid characters and that any colon (:) appears only at the second position.
The folder name is considered invalid if it contains any of the following characters: * ? " < > |, or if a colon (:) appears anywhere other than the second character (e.g., C:\ is valid).
Namespace: MwPDMApi
Assembly: MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Visual Basic |
|---|
Public Function IsValidFolderName ( _ fn As String _ |
C# |
|---|
public bool IsValidFolderName( string fn |
Visual C++ |
|---|
public: bool IsValidFolderName( |
JavaScript |
|---|
function isValidFolderName(fn); |
Parameters
fn
Type: System.String
The folder name to validate.
Return Value
True if the folder name is valid; otherwise, False.
See Also