mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-08 07:56:07 +02:00
merge main branch
This commit is contained in:
+12
-5
@@ -1,20 +1,23 @@
|
|||||||
---
|
---
|
||||||
title: "Known Folder GUIDs for File Dialog Custom Places"
|
title: "Known Folder GUIDs for File Dialog Custom Places"
|
||||||
ms.date: "03/30/2017"
|
ms.date: "06/15/2021"
|
||||||
helpviewer_keywords:
|
helpviewer_keywords:
|
||||||
- "Known Folder GUIDs [Windows Forms], Custom Places"
|
- "Known Folder GUIDs [Windows Forms], Custom Places"
|
||||||
- "Custom Places [Windows Forms], Known Folder GUIDs"
|
- "Custom Places [Windows Forms], Known Folder GUIDs"
|
||||||
- "Windows Vista Known Folder GUIDs [Windows Forms], Custom Places"
|
- "Windows Known Folder GUIDs [Windows Forms], Custom Places"
|
||||||
ms.assetid: d8d8b544-8b4d-4da5-ba3a-b05e93244778
|
ms.assetid: d8d8b544-8b4d-4da5-ba3a-b05e93244778
|
||||||
---
|
---
|
||||||
|
|
||||||
# Known Folder GUIDs for File Dialog Custom Places
|
# Known Folder GUIDs for File Dialog Custom Places
|
||||||
You use a <xref:System.Guid> to specify a Windows Vista Known Folder when you add folders to a <xref:System.Windows.Forms.FileDialog.CustomPlaces%2A> collection. Known Folder GUIDs are not case sensitive and are defined in the KnownFolders.h file in the Windows SDK.
|
|
||||||
|
You use a <xref:System.Guid> to specify a Windows Known Folder when you add folders to a <xref:System.Windows.Forms.FileDialog.CustomPlaces%2A> collection. Known Folder GUIDs are not case sensitive and are defined in the [KnownFolders.h file in the Windows SDK](/windows/win32/shell/knownfolderid).
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> In some cases, a Known Folder added to the <xref:System.Windows.Forms.FileDialogCustomPlacesCollection> will not be shown in the **Favorite Links** area. For example, if the specified Known Folder is not present on the computer that is running the application, the Known Folder is not shown.
|
> In some cases, a Known Folder added to the <xref:System.Windows.Forms.FileDialogCustomPlacesCollection> won't be shown in the **Favorite Links** area. For example, if the specified Known Folder is not present on the computer that is running the application, the Known Folder isn't shown.
|
||||||
|
|
||||||
## List of GUIDs
|
## List of GUIDs
|
||||||
The following table lists Windows Vista Known Folders and their associated <xref:System.Guid>.
|
|
||||||
|
The following table lists Windows Known Folders and their associated <xref:System.Guid>.
|
||||||
|
|
||||||
AddNewPrograms
|
AddNewPrograms
|
||||||
DE61D971-5EBC-4F02-A3A9-6C82895E5C04
|
DE61D971-5EBC-4F02-A3A9-6C82895E5C04
|
||||||
@@ -118,6 +121,9 @@ You use a <xref:System.Guid> to specify a Windows Vista Known Folder when you ad
|
|||||||
Network
|
Network
|
||||||
D20BEEC4-5CA8-4905-AE3B-BF251EA09B53
|
D20BEEC4-5CA8-4905-AE3B-BF251EA09B53
|
||||||
|
|
||||||
|
Objects3D
|
||||||
|
31C0DD25-9439-4F12-BF41-7FF4EDA38722
|
||||||
|
|
||||||
OriginalImages
|
OriginalImages
|
||||||
2C36C0AA-5812-4B87-BFD0-4CD0DFB19B39
|
2C36C0AA-5812-4B87-BFD0-4CD0DFB19B39
|
||||||
|
|
||||||
@@ -284,3 +290,4 @@ You use a <xref:System.Guid> to specify a Windows Vista Known Folder when you ad
|
|||||||
|
|
||||||
- <xref:System.Windows.Forms.FileDialogCustomPlace>
|
- <xref:System.Windows.Forms.FileDialogCustomPlace>
|
||||||
- [How To: Add a Custom Place to a File Dialog Box](how-to-add-a-custom-place-to-a-file-dialog-box.md)
|
- [How To: Add a Custom Place to a File Dialog Box](how-to-add-a-custom-place-to-a-file-dialog-box.md)
|
||||||
|
- [KnownFolders.h file in the Windows SDK](/windows/win32/shell/knownfolderid)
|
||||||
|
|||||||
+3
-3
@@ -19,7 +19,7 @@ As an implementer of a value converter, you often need access to some type of co
|
|||||||
```csharp
|
```csharp
|
||||||
public override object ProvideValue(IServiceProvider serviceProvider)
|
public override object ProvideValue(IServiceProvider serviceProvider)
|
||||||
{
|
{
|
||||||
...
|
//...
|
||||||
// Get the IXamlTypeResolver from the service provider
|
// Get the IXamlTypeResolver from the service provider
|
||||||
if (serviceProvider == null)
|
if (serviceProvider == null)
|
||||||
{
|
{
|
||||||
@@ -28,9 +28,9 @@ public override object ProvideValue(IServiceProvider serviceProvider)
|
|||||||
IXamlTypeResolver xamlTypeResolver = serviceProvider.GetService(typeof(IXamlTypeResolver)) as IXamlTypeResolver;
|
IXamlTypeResolver xamlTypeResolver = serviceProvider.GetService(typeof(IXamlTypeResolver)) as IXamlTypeResolver;
|
||||||
if (xamlTypeResolver == null)
|
if (xamlTypeResolver == null)
|
||||||
{
|
{
|
||||||
throw new ArgumentException("IXamlTypeResolver"));
|
throw new ArgumentException("IXamlTypeResolver");
|
||||||
}
|
}
|
||||||
...
|
//...
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user