.NET Framework Class Library
File.FileNameNoExt Method

<< Click to Display Table of Contents >>

Navigation:  MwPDMApi Namespace > File Class > File Methods >

.NET Framework Class Library
File.FileNameNoExt Method

Retrieves the file name without extension from the file name

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

Syntax

Visual Basic

Public Function FileNameNoExt ( _

 fileName As String, _
 Optional withoutDot As Boolean = True _
As String

C#

public string FileNameNoExt(

 string fileName,
 bool withoutDot = true
)

Visual C++

public:

StringFileNameNoExt(
 StringfileName,
 bool withoutDot = true
)

JavaScript

function fileNameNoExt(fileNamewithoutDot);

Parameters

fileName

Type: System.String
name of the file

withoutDot (Optional)

Type: System.Boolean
Optional. If TRUE without dot, FALSE otherwise

Return Value

A string containing the file name of the document without extension

Remarks

See Also

File Class

File Members

MwPDMApi Namespace