StorageFile.FileType Property

Definition

Gets the type (file name extension) of the file.

public:
 property Platform::String ^ FileType { Platform::String ^ get(); };
winrt::hstring FileType();
public string FileType { get; }
var string = storageFile.fileType;
Public ReadOnly Property FileType As String

Property Value

String

Platform::String

winrt::hstring

The file name extension of the file.

Implements

Remarks

The file type includes all characters starting with (and including) the final "." in the file name. For example, an image file might have the ".jpg" file type.

Applies to