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.158 -- Release Build+8af53c44e6ad1fac543a652d58b46c9843b74b64
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