Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / Microsoft / Win32 / FileDialogCustomPlace.cs / 1305600 / FileDialogCustomPlace.cs
/**************************************************************************\
Copyright Microsoft Corporation. All Rights Reserved.
\**************************************************************************/
namespace Microsoft.Win32
{
using System;
using System.Globalization;
///
/// A union of KnownFolders and file paths that can be placed into FileDialog's Favorites pane.
///
public sealed class FileDialogCustomPlace
{
///
/// Create a new FileDialogCustomPlace from a known folder guid.
///
///
/// 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.
///
public FileDialogCustomPlace(Guid knownFolder)
{
KnownFolder = knownFolder;
}
///
/// Create a new FileDialogCustomPlace from a file path.
///
public FileDialogCustomPlace(string path)
{
Path = path ?? "";
}
public Guid KnownFolder { get; private set; }
public string Path { get; private set; }
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
/**************************************************************************\
Copyright Microsoft Corporation. All Rights Reserved.
\**************************************************************************/
namespace Microsoft.Win32
{
using System;
using System.Globalization;
///
/// A union of KnownFolders and file paths that can be placed into FileDialog's Favorites pane.
///
public sealed class FileDialogCustomPlace
{
///
/// Create a new FileDialogCustomPlace from a known folder guid.
///
///
/// 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.
///
public FileDialogCustomPlace(Guid knownFolder)
{
KnownFolder = knownFolder;
}
///
/// Create a new FileDialogCustomPlace from a file path.
///
public FileDialogCustomPlace(string path)
{
Path = path ?? "";
}
public Guid KnownFolder { get; private set; }
public string Path { get; private set; }
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RadioButtonStandardAdapter.cs
- SizeChangedInfo.cs
- ListItem.cs
- PrinterResolution.cs
- PopupRoot.cs
- CapacityStreamGeometryContext.cs
- StackOverflowException.cs
- TemplateBindingExtensionConverter.cs
- InkSerializer.cs
- TextFragmentEngine.cs
- WebPageTraceListener.cs
- Variant.cs
- XmlSchemaObject.cs
- DataListItemCollection.cs
- InsufficientMemoryException.cs
- UnsafePeerToPeerMethods.cs
- DelegatingConfigHost.cs
- WindowsMenu.cs
- ResourceReader.cs
- WeakEventTable.cs
- TypedRowGenerator.cs
- ItemsPanelTemplate.cs
- HtmlTextArea.cs
- control.ime.cs
- CodeNamespace.cs
- SpotLight.cs
- DataGridViewAdvancedBorderStyle.cs
- TextSchema.cs
- MergePropertyDescriptor.cs
- DockAndAnchorLayout.cs
- FormViewCommandEventArgs.cs
- TypeConverterHelper.cs
- ContentDisposition.cs
- VideoDrawing.cs
- ToolStripSettings.cs
- ListMarkerLine.cs
- ApplicationDirectory.cs
- TargetControlTypeCache.cs
- Visitor.cs
- Executor.cs
- MatchNoneMessageFilter.cs
- TcpProcessProtocolHandler.cs
- ChangesetResponse.cs
- RequestQueue.cs
- ExternalCalls.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- _OverlappedAsyncResult.cs
- StylusCaptureWithinProperty.cs
- TraceHandler.cs
- OutOfProcStateClientManager.cs
- Permission.cs
- WebPartConnectionsConnectVerb.cs
- FileVersion.cs
- ISFClipboardData.cs
- WhitespaceRuleReader.cs
- HttpAsyncResult.cs
- HttpHandlerActionCollection.cs
- SplayTreeNode.cs
- WeakReferenceList.cs
- RectIndependentAnimationStorage.cs
- SqlException.cs
- MainMenu.cs
- ClipboardData.cs
- ProtocolProfile.cs
- BrowserCapabilitiesCodeGenerator.cs
- XmlSignatureProperties.cs
- FixedSOMPage.cs
- InvalidWMPVersionException.cs
- RoutedEventValueSerializer.cs
- VolatileEnlistmentMultiplexing.cs
- SpAudioStreamWrapper.cs
- XmlElementAttributes.cs
- SqlDataSourceStatusEventArgs.cs
- RepeaterItemCollection.cs
- GridViewSortEventArgs.cs
- DataGridViewCellStyleChangedEventArgs.cs
- XmlDocumentViewSchema.cs
- IPPacketInformation.cs
- SqlCharStream.cs
- ServerValidateEventArgs.cs
- WebPartTracker.cs
- ElementHostAutomationPeer.cs
- ChildTable.cs
- Cursor.cs
- HyperLinkField.cs
- DataServiceSaveChangesEventArgs.cs
- _StreamFramer.cs
- VirtualPathProvider.cs
- TraceHwndHost.cs
- ExpressionDumper.cs
- TypeInfo.cs
- SafeRightsManagementHandle.cs
- SystemFonts.cs
- Token.cs
- StreamReader.cs
- ToolStripSeparatorRenderEventArgs.cs
- ListViewItemEventArgs.cs
- WebPartExportVerb.cs
- ToolStripDropDownButton.cs