Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.47 KB

targetfilerequest_targetfile.md

File metadata and controls

27 lines (19 loc) · 1.47 KB
-api-id -api-type -api-device-family-note
P:Windows.Storage.Pickers.Provider.TargetFileRequest.TargetFile
winrt property
xbox

Windows.Storage.Pickers.Provider.TargetFileRequest.TargetFile

-description

Gets or sets the IStorageFile object that is provided to represent the file to save by the app that is providing the save location.

-property-value

The object that represents the file to save. The app that called the file picker in order to save will write content to this file.

-remarks

If your app (as the provider of the save location) can't provide an object for the file to save, set this property to null. Unless the user selects an existing file to save, your app should create a StorageFile object to represent the file sets this property to that object.

The file name and extension of the object that represents the file to save must match the file name and extension specified by the user (and accessible through the FileName property) or the attempt to save the file will fail. If the attempt fails, the user can try to save the file again.

-examples

-see-also

TargetFileRequest class, Windows.Storage.IStorageFile interface, Windows.Storage.StorageFile class