Metro class library, FileInfo replacement?

In one of our components, ported from Java to C #, we used FileInfoas the equivalent for Java File.

Now we are working to make this class library available for Metro applications, and we need to get certified, obviously.

What is a good replacement for FileInfoin the .NET Framework 4.5 .NET Profile?

+3
source share
2 answers

StorageFile Class in the Windows.Storage namespace .

Class storagefile

Represents a file. Provides information about the file and its contents, as well as how to manipulate them.

Example:

var file = await StorageFile.GetFileFromPathAsync(path);
+4
source

All Articles