FileInfo.Extension Property

Get the extension
<PropertyExpression("Extension")> _ 
Public ReadOnly Property Extension() As String
This language is not supported or no code example is available.
[PropertyExpression("Extension")] 
public string Extension {get;}
This language is not supported or no code example is available.
[PropertyExpression("Extension")] 
public:  
property String^ Extension { 
String^ get( ); 
}
This language is not supported or no code example is available.
public  
PropertyExpression("Extension") 
function get Extension() : String;
This language is not supported or no code example is available.

Property Value

string

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1

In this article

Definition