File: src\Framework\Microsoft\Win32\FileDialogCustomPlace.cs
Project: wpf\PresentationFramework.csproj (PresentationFramework)
/**************************************************************************\
    Copyright Microsoft Corporation. All Rights Reserved.
\**************************************************************************/
 
namespace Microsoft.Win32
{
    using System;
    using System.Globalization;
 
    /// <summary>
    /// A union of KnownFolders and file paths that can be placed into FileDialog's Favorites pane.
    /// </summary>
    public sealed class FileDialogCustomPlace
    {
        /// <summary>
        /// Create a new FileDialogCustomPlace from a known folder guid.
        /// </summary>
        /// <remarks>
        /// Guids provided here may be gotten from the KnownFolders.h file included in the Windows SDK.
        /// New guids can also be registered by an application.
        /// </remarks>
        public FileDialogCustomPlace(Guid knownFolder)
        {
            KnownFolder = knownFolder;
        }
 
        /// <summary>
        /// Create a new FileDialogCustomPlace from a file path.
        /// </summary>
        public FileDialogCustomPlace(string path)
        {
            Path = path ?? "";
        }
 
        public Guid KnownFolder { get; private set; }
        public string Path { get; private set; }
    }
}