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.138 -- Release Build+dacff88cce10d287c7434d5aac59c76948c712b1
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