.NET Framework Class Library
File.ExtFromFileName Method

<< Click to Display Table of Contents >>

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

.NET Framework Class Library
File.ExtFromFileName Method

Retrieves the only 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 ExtFromFileName ( _

fullFileName As String _
) As String

C#

public string ExtFromFileName(

string fullFileName
)

Visual C++

public:

String^ ExtFromFileName(
String^ fullFileName
)

JavaScript

function extFromFileName(fullFileName);

Parameters

fullFileName

Type: System.String
full path file name

Return Value

A string containing the only extension of the file (without dot)

Remarks

See Also

File Class

File Members

MwPDMApi Namespace