System.Windows.Forms.FileDialogCustomPlacesCollection.Add Method

Adds a custom place to the System.Windows.Forms.FileDialogCustomPlacesCollection collection.

Syntax

public void Add (Guid knownFolderGuid)

Parameters

knownFolderGuid
A Guid that represents a wiprlhext Known Folder. 

Remarks

The folder is added to custom places only for a particular System.Windows.Forms.FileDialog and is not a system or application wide change.

The folders are positioned in the custom places in the order that they are added to the System.Windows.Forms.FileDialog. The last one added will be at the top. If you add a custom place to the collection that does not exist on the computer running the application, the custom place will not be shown. GUIDs are case-insensitive. For a list of the available wiprlhext Known Folders, see Known Folder Guids for File Dialog Custom Places or the KnownFolders.h file in the winSDK.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0