StorageFileHelper.ReadTextFromKnownFoldersFileAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a string value from a Windows.Storage.StorageFile located in a well known folder.
public static System.Threading.Tasks.Task<string> ReadTextFromKnownFoldersFileAsync (Windows.Storage.KnownFolderId knownFolderId, string fileName);
static member ReadTextFromKnownFoldersFileAsync : Windows.Storage.KnownFolderId * string -> System.Threading.Tasks.Task<string>
Public Function ReadTextFromKnownFoldersFileAsync (knownFolderId As KnownFolderId, fileName As String) As Task(Of String)
Parameters
- knownFolderId
- Windows.Storage.KnownFolderId
The well known folder ID to use.
Returns
The stored String value.
Exceptions
Exception thrown if the fileName
is null or empty.