.NET Framework Class Library
DataEntrHelper.IsValidFileName Method
|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > .NET API > MwPDMApi Namespace > DataEntrHelper Class > DataEntrHelper Methods > .NET Framework Class Library |
Determines whether the specified file name is valid by checking for invalid characters. Returns True if the file name does not contain any of the following characters: \ / : * ? " < > |; otherwise, returns False.
Namespace: MwPDMApi
Assembly: MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Visual Basic |
|---|
Public Function IsValidFileName ( _ fn As String _ |
C# |
|---|
public bool IsValidFileName( string fn |
Visual C++ |
|---|
public: bool IsValidFileName( |
JavaScript |
|---|
function isValidFileName(fn); |
Parameters
fn
Type: System.String
The file name to validate.
Return Value
True if the file name is valid; otherwise, False.
See Also