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
- InvalidCommandTreeException.cs
- dbdatarecord.cs
- _RequestCacheProtocol.cs
- FloaterBaseParaClient.cs
- SourceItem.cs
- keycontainerpermission.cs
- UIElementParaClient.cs
- XpsFixedDocumentReaderWriter.cs
- WebPartManager.cs
- XmlnsPrefixAttribute.cs
- CommandBinding.cs
- RenderingEventArgs.cs
- SiteIdentityPermission.cs
- LoadWorkflowCommand.cs
- CodeVariableReferenceExpression.cs
- QilParameter.cs
- WebPartConnectionsDisconnectVerb.cs
- XmlSignatureProperties.cs
- ReturnEventArgs.cs
- ImageListUtils.cs
- MiniModule.cs
- DetailsViewCommandEventArgs.cs
- CLRBindingWorker.cs
- RSACryptoServiceProvider.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- TableAdapterManagerMethodGenerator.cs
- DataGridSortCommandEventArgs.cs
- ValidationErrorCollection.cs
- Trace.cs
- ProcessModelSection.cs
- RequestTimeoutManager.cs
- ClosableStream.cs
- ColorContext.cs
- DocumentCollection.cs
- webproxy.cs
- PersistenceTypeAttribute.cs
- WebPartsSection.cs
- ExtractCollection.cs
- TypedTableGenerator.cs
- ConnectionConsumerAttribute.cs
- SafeReadContext.cs
- DropDownList.cs
- SystemIPGlobalStatistics.cs
- AddInStore.cs
- ReadOnlyPropertyMetadata.cs
- PaintEvent.cs
- StateBag.cs
- IndependentAnimationStorage.cs
- ToolTipService.cs
- System.Data.OracleClient_BID.cs
- HtmlTableRow.cs
- ParameterCollection.cs
- SqlTrackingService.cs
- QilXmlWriter.cs
- SafeThreadHandle.cs
- FocusWithinProperty.cs
- LogManagementAsyncResult.cs
- ObjectParameter.cs
- Light.cs
- AddInServer.cs
- TypeLibraryHelper.cs
- SecurityTokenAuthenticator.cs
- CatalogPartChrome.cs
- BufferedMessageWriter.cs
- XmlValueConverter.cs
- SafeHandle.cs
- panel.cs
- LiteralControl.cs
- CaseStatement.cs
- DataBindingHandlerAttribute.cs
- HelpProvider.cs
- HandleExceptionArgs.cs
- Schedule.cs
- SqlException.cs
- ObjectQuery.cs
- DoubleConverter.cs
- AuthorizationSection.cs
- storepermission.cs
- ChildTable.cs
- ImageFormatConverter.cs
- Frame.cs
- TypeLibConverter.cs
- WebRequest.cs
- QuaternionRotation3D.cs
- XmlMemberMapping.cs
- StructuredProperty.cs
- HtmlEncodedRawTextWriter.cs
- controlskin.cs
- ErrorLog.cs
- WindowsListViewScroll.cs
- DocumentCollection.cs
- IDQuery.cs
- WebPartEditorOkVerb.cs
- EventMap.cs
- ReadOnlyHierarchicalDataSource.cs
- GetRecipientListRequest.cs
- WebControl.cs
- ProjectionPathBuilder.cs
- UnsafeNativeMethods.cs
- UserControl.cs