Gemstone Common Library
Show/Hide TOC

# FilePathGetExtension Method

Gets the extension from the specified file path.

## Definition

Namespace: Gemstone.IO
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.175 -- Release Build+70cfebd19f80455d07e1cf93607e59f6af0e38f4
C#
View Source Request Example

    public static string GetExtension(
    	string filePath
    )

VB
View Source Request Example

    Public Shared Function GetExtension (
    	filePath As String
    ) As String

C++
View Source Request Example

    public:
    static String^ GetExtension(
    	String^ filePath
    )

JavaScript
View Source Request Example

    Gemstone.IO.FilePath.GetExtension = function(filePath);

#### Parameters

filePath String
  The file path from which the extension is to be obtained.

#### Return Value

String
File extension.

## See Also

#### Reference

FilePath Class
Gemstone.IO Namespace