.NET Framework Class Library
DataEntrHelper.IsValidFileName Method

<< Click to Display Table of Contents >>

Navigation:  MwPDMApi Namespace > DataEntrHelper Class > DataEntrHelper Methods >

.NET Framework Class Library
DataEntrHelper.IsValidFileName Method

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 _
As Boolean

C#

public bool IsValidFileName(

 string fn
)

Visual C++

public:

bool IsValidFileName(
 Stringfn
)

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

DataEntrHelper Class

DataEntrHelper Members

MwPDMApi Namespace