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.164 -- Release Build+6bbd7ea5ff4ad8917f12d693358b77d083ee278e
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