.NET Framework Class Library
File.ValidFileName Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > File Class > File Methods >

.NET Framework Class Library
File.ValidFileName Method

Checks that the assigned filename is a valid operating system file name.

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Function ValidFileName ( _

fileName As String _
) As Boolean

C#

public bool ValidFileName(

string fileName
)

Visual C++

public:

bool ValidFileName(
String^ fileName
)

JavaScript

function validFileName(fileName);

Parameters

fileName

Type: System.String
name of the file to check

Return Value

TRUE if the file name is valid, FALSE otherwise

Remarks

See Also

File Class

File Members

MwPDMApi Namespace