You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hub/apps/develop/files/best-practices-writing-files.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Best practices for writing to files
3
3
description: Learn best practices for using various file writing methods of the FileIO and PathIO classes.
4
4
ms.date: 02/06/2019
5
5
ms.topic: best-practice
6
-
keywords: windows 10, uwp
6
+
keywords: windows 10, winui
7
7
ms.localizationpriority: medium
8
8
---
9
9
# Best practices for writing to files
@@ -55,7 +55,7 @@ To protect the integrity of the original file in case something goes wrong while
55
55
56
56
The following diagram illustrates the underlying tasks performed by the WriteTextAsync method in a successful write operation. This illustration provides a simplified view of the operation. For example, it skips steps such as text encoding and async completion on different threads.
57
57
58
-

58
+

59
59
60
60
The advantages of using the Write methods of the [FileIO](/uwp/api/Windows.Storage.FileIO) and [PathIO](/uwp/api/windows.storage.pathio) classes instead of the more complex four-step model using a stream are:
Copy file name to clipboardExpand all lines: hub/apps/develop/files/create-read-write-files.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
---
2
2
ms.assetid: 27914C0A-2A02-473F-BDD5-C931E3943AA0
3
3
title: Create, write, and read a file
4
-
description: Learn how to create, write, and read a file using the Universal Windows Platform (UWP) objects FileIO, StorageFolder, and StorageFile.
4
+
description: Learn how to create, write, and read a file using the WinUI objects FileIO, StorageFolder, and StorageFile.
5
5
ms.date: 12/19/2018
6
6
ms.topic: article
7
-
keywords: windows 10, uwp
7
+
keywords: windows 10, winui
8
8
ms.localizationpriority: medium
9
9
dev_langs:
10
10
- csharp
@@ -27,7 +27,7 @@ Read and write a file using a [StorageFile](/uwp/api/windows.storage.storagefile
27
27
28
28
## Prerequisites
29
29
30
-
-**Understand async programming for Universal Windows Platform (UWP) apps**
30
+
-**Understand async programming for WinUI apps**
31
31
32
32
You can learn how to write asynchronous apps in C# or Visual Basic, see [Call asynchronous APIs in C# or Visual Basic](/windows/uwp/threading-async/call-asynchronous-apis-in-csharp-or-visual-basic). To learn how to write asynchronous apps in C++/WinRT, see [Concurrency and asynchronous operations with C++/WinRT](/windows/uwp/cpp-and-winrt-apis/concurrency). To learn how to write asynchronous apps in C++/CX, see [Asynchronous programming in C++/CX](/windows/uwp/threading-async/asynchronous-programming-in-cpp-universal-windows-platform-apps).
Copy file name to clipboardExpand all lines: hub/apps/develop/files/determine-availability-microsoft-onedrive-files.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Determining availability of Microsoft OneDrive files
4
4
description: Determine if a Microsoft OneDrive file is available using the StorageFile.IsAvailable property.
5
5
ms.date: 02/08/2017
6
6
ms.topic: how-to
7
-
keywords: windows 10, uwp
7
+
keywords: windows 10, winui
8
8
ms.localizationpriority: medium
9
9
---
10
10
# Determining availability of Microsoft OneDrive files
@@ -20,7 +20,7 @@ Determine if a Microsoft OneDrive file is available using the [StorageFile.IsAva
20
20
21
21
## Prerequisites
22
22
23
-
-**Understand async programming for Universal Windows Platform (UWP) apps**
23
+
-**Understand async programming for WinUI apps**
24
24
25
25
You can learn how to write asynchronous apps in C# or Visual Basic, see [Call asynchronous APIs in C# or Visual Basic](/windows/uwp/threading-async/call-asynchronous-apis-in-csharp-or-visual-basic). To learn how to write asynchronous apps in C++, see [Asynchronous programming in C++](/windows/uwp/threading-async/asynchronous-programming-in-cpp-universal-windows-platform-apps).
Copy file name to clipboardExpand all lines: hub/apps/develop/files/fast-file-properties.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
1
---
2
-
title: Fast access to file properties in UWP
3
-
description: Efficiently gather a list of files and their properties from a library to use in a UWP app.
2
+
title: Fast access to file properties in WinUI
3
+
description: Efficiently gather a list of files and their properties from a library to use in a WinUI app.
4
4
ms.date: 02/06/2019
5
5
ms.topic: article
6
-
keywords: windows 10, uwp, file, properties
6
+
keywords: windows 10, winui, file, properties
7
7
ms.localizationpriority: medium
8
8
---
9
-
# Fast access to file properties in UWP
9
+
# Fast access to file properties in WinUI
10
10
11
11
Learn how to quickly gather a list of files and their properties from a library and use those properties in an app.
12
12
13
13
Prerequisites
14
-
-**Asynchronous programming for Universal Windows Platform (UWP) apps**
14
+
-**Asynchronous programming for WinUI apps**
15
15
You can learn how to write asynchronous apps in C# or Visual Basic, see [Call asynchronous APIs in C# or Visual Basic](/windows/uwp/threading-async/call-asynchronous-apis-in-csharp-or-visual-basic). To learn how to write asynchronous apps in C++, see [Asynchronous programming in C++](/windows/uwp/threading-async/asynchronous-programming-in-cpp-universal-windows-platform-apps).
16
16
-**Access permissions to Libraries**
17
17
The code in these examples requires the picturesLibrary capability, but your file location may require a different capability, or no capability at all. To learn more, see [File access permissions](./file-access-permissions.md).
Copy file name to clipboardExpand all lines: hub/apps/develop/files/file-access-permissions.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: File access permissions
4
4
description: Apps can access certain file system locations by default. Apps can also access additional locations through the file picker, or by declaring capabilities.
5
5
ms.date: 01/28/2022
6
6
ms.topic: how-to
7
-
keywords: windows 10, uwp
7
+
keywords: windows 10, winui
8
8
ms.localizationpriority: medium
9
9
dev_langs:
10
10
- csharp
@@ -15,9 +15,9 @@ dev_langs:
15
15
16
16
# File access permissions
17
17
18
-
Universal Windows Platform (UWP) apps can access certain file system locations by default. Apps can also access additional locations through the file picker, or by declaring capabilities.
18
+
WinUI apps can access certain file system locations by default. Apps can also access additional locations through the file picker, or by declaring capabilities.
19
19
20
-
### Locations that UWP apps can access
20
+
### Locations that WinUI apps can access
21
21
22
22
When you create a new app, you can access the following file system locations by default:
23
23
@@ -86,7 +86,7 @@ There are two primary ways to access files and folders in your app's install dir
86
86
87
87
The"ms-appx:///"prefixintheURIreferstotheapp's install directory. You can learn more about using app URIs in [How to use URIs to reference content](/previous-versions/windows/apps/hh781215(v=win.10)).
@@ -159,7 +159,7 @@ There are two primary ways to access files and folders from your app's data loca
159
159
160
160
The"ms-appdata:///local/"prefixintheURIreferstotheapp's local folder. To access files in the app'sroamingortemporaryfoldersuse"ms-appdata:///roaming/"or"ms-appdata:///temporary/"instead. YoucanlearnmoreaboutusingappURIsin [Howtoloadfileresources](/previous-versions/windows/apps/hh781229(v=win.10)).
Copy file name to clipboardExpand all lines: hub/apps/develop/files/file-properties.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Get file properties
4
4
description: Get properties&\#8212;top-level, basic, and extended&\#8212;for a file represented by a StorageFile object.
5
5
ms.date: 12/19/2018
6
6
ms.topic: how-to
7
-
keywords: windows 10, uwp
7
+
keywords: windows 10, winui
8
8
ms.localizationpriority: medium
9
9
---
10
10
# Get file properties
@@ -22,7 +22,7 @@ Get properties—top-level, basic, and extended—for a file represented by a [S
22
22
23
23
## Prerequisites
24
24
25
-
-**Understand async programming for Universal Windows Platform (UWP) apps**
25
+
-**Understand async programming for WinUI apps**
26
26
27
27
You can learn how to write asynchronous apps in C# or Visual Basic, see [Call asynchronous APIs in C# or Visual Basic](/windows/uwp/threading-async/call-asynchronous-apis-in-csharp-or-visual-basic). To learn how to write asynchronous apps in C++, see [Asynchronous programming in C++](/windows/uwp/threading-async/asynchronous-programming-in-cpp-universal-windows-platform-apps).
Copy file name to clipboardExpand all lines: hub/apps/develop/files/list-files-folders.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Enumerate and query files and folders
4
4
description: Access files and folders in either a folder, library, device, or network location. You can also query the files and folders in a location by constructing file and folder queries.
5
5
ms.date: 12/19/2018
6
6
ms.topic: how-to
7
-
keywords: windows 10, uwp
7
+
keywords: windows 10, winui
8
8
ms.localizationpriority: medium
9
9
dev_langs:
10
10
- csharp
@@ -16,14 +16,14 @@ dev_langs:
16
16
17
17
Access files and folders in either a folder, library, device, or network location. You can also query the files and folders in a location by constructing file and folder queries.
18
18
19
-
For guidance on how to store your Universal Windows Platform app's data, see the [ApplicationData](/uwp/api/windows.storage.applicationdata) class.
19
+
For guidance on how to store your WinUI app's data, see the [ApplicationData](/uwp/api/windows.storage.applicationdata) class.
20
20
21
21
> [!NOTE]
22
22
> For a complete sample, see the [Folder enumeration sample](https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/FolderEnumeration).
23
23
24
24
## Prerequisites
25
25
26
-
-**Understand async programming for Universal Windows Platform (UWP) apps**
26
+
-**Understand async programming for WinUI apps**
27
27
28
28
You can learn how to write asynchronous apps in C# or Visual Basic, see [Call asynchronous APIs in C# or Visual Basic](/windows/uwp/threading-async/call-asynchronous-apis-in-csharp-or-visual-basic). To learn how to write asynchronous apps in C++/WinRT, see [Concurrency and asynchronous operations with C++/WinRT](/windows/uwp/cpp-and-winrt-apis/concurrency). To learn how to write asynchronous apps in C++/CX, see [Asynchronous programming in C++/CX](/windows/uwp/threading-async/asynchronous-programming-in-cpp-universal-windows-platform-apps).
Copy file name to clipboardExpand all lines: hub/apps/develop/files/music-pictures-videos-libraries.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Managing the Music, Pictures, and Videos libraries
4
4
description: Add existing folders of music, pictures, or videos to the corresponding libraries. You can also remove folders from libraries, get the list of folders in a library, and discover stored photos, music, and videos.
5
5
ms.date: 06/18/2018
6
6
ms.topic: concept-article
7
-
keywords: windows 10, uwp
7
+
keywords: windows 10, winui
8
8
ms.localizationpriority: medium
9
9
---
10
10
# Files and folders in the Music, Pictures, and Videos libraries
@@ -16,7 +16,7 @@ A library is a virtual collection of folders, which includes a known folder by d
16
16
## Prerequisites
17
17
18
18
19
-
-**Understand async programming for Universal Windows Platform (UWP) apps**
19
+
-**Understand async programming for WinUI apps**
20
20
21
21
You can learn how to write asynchronous apps in C# or Visual Basic, see [Call asynchronous APIs in C# or Visual Basic](/windows/uwp/threading-async/call-asynchronous-apis-in-csharp-or-visual-basic). To learn how to write asynchronous apps in C++, see [Asynchronous programming in C++](/windows/uwp/threading-async/asynchronous-programming-in-cpp-universal-windows-platform-apps).
0 commit comments