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.150 -- Release Build+64e3b411e1abfbd2d4d8a81e850c3909a0ce8731
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