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
- CodeExporter.cs
- DataList.cs
- OdbcPermission.cs
- MediaElement.cs
- ListBoxItem.cs
- CodeCompiler.cs
- RenderDataDrawingContext.cs
- MarkedHighlightComponent.cs
- RowType.cs
- CodeIndexerExpression.cs
- selecteditemcollection.cs
- SendContent.cs
- ListenerPerfCounters.cs
- CompilerResults.cs
- UserControlParser.cs
- TemplatedMailWebEventProvider.cs
- LinkUtilities.cs
- WizardPanelChangingEventArgs.cs
- DataGridAddNewRow.cs
- DisposableCollectionWrapper.cs
- Registry.cs
- ConstraintEnumerator.cs
- PasswordBoxAutomationPeer.cs
- COSERVERINFO.cs
- RequestContextBase.cs
- XmlWellformedWriter.cs
- SubclassTypeValidatorAttribute.cs
- CompareValidator.cs
- TreeNodeStyleCollection.cs
- EventItfInfo.cs
- OracleBoolean.cs
- RoleGroup.cs
- DrawingContextWalker.cs
- DetailsViewPageEventArgs.cs
- NameGenerator.cs
- CompilerScope.cs
- WebPartDisplayMode.cs
- CoTaskMemUnicodeSafeHandle.cs
- EventLogger.cs
- MemberDomainMap.cs
- StateMachine.cs
- VirtualPathUtility.cs
- WebBrowserUriTypeConverter.cs
- XmlDocumentSerializer.cs
- UnmanagedMarshal.cs
- IPEndPoint.cs
- GeneralTransform3D.cs
- CompareValidator.cs
- DoubleAnimation.cs
- DrawListViewItemEventArgs.cs
- ResourceDefaultValueAttribute.cs
- XmlKeywords.cs
- TriggerCollection.cs
- WindowsListViewItem.cs
- WindowsListViewItemStartMenu.cs
- ZipIOLocalFileBlock.cs
- GrammarBuilderDictation.cs
- DSACryptoServiceProvider.cs
- Timeline.cs
- HttpCookieCollection.cs
- ExcludePathInfo.cs
- InnerItemCollectionView.cs
- HtmlElementEventArgs.cs
- XmlDocumentType.cs
- GeneralTransform2DTo3D.cs
- TextRangeEditTables.cs
- FormClosedEvent.cs
- QuadTree.cs
- XmlSchemaSimpleContentRestriction.cs
- XmlILModule.cs
- ExpressionNode.cs
- SqlDependencyUtils.cs
- ButtonBase.cs
- ColumnWidthChangedEvent.cs
- XhtmlBasicCalendarAdapter.cs
- ContextProperty.cs
- ErrorFormatterPage.cs
- DoubleStorage.cs
- ParallelForEach.cs
- ReservationNotFoundException.cs
- RemoteWebConfigurationHostServer.cs
- TypeDelegator.cs
- CryptoProvider.cs
- DocumentEventArgs.cs
- XmlSchemaException.cs
- AudioLevelUpdatedEventArgs.cs
- XmlTypeMapping.cs
- AuthorizationContext.cs
- AdapterDictionary.cs
- SafeArrayRankMismatchException.cs
- GlobalItem.cs
- PeerApplicationLaunchInfo.cs
- XmlComment.cs
- ComboBox.cs
- EntityDataSourceUtil.cs
- PageThemeBuildProvider.cs
- TableRowGroupCollection.cs
- BindingManagerDataErrorEventArgs.cs
- WindowsAuthenticationModule.cs
- DelegateHelpers.cs