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
- SupportsEventValidationAttribute.cs
- OdbcDataAdapter.cs
- TreeViewHitTestInfo.cs
- ReadWriteControlDesigner.cs
- ClassicBorderDecorator.cs
- WinInetCache.cs
- PolicyUnit.cs
- WaitHandle.cs
- DocumentViewerBase.cs
- ResourceSet.cs
- PathFigureCollectionValueSerializer.cs
- BrowserCapabilitiesFactoryBase.cs
- QuaternionRotation3D.cs
- Image.cs
- DataGridViewBand.cs
- BinaryReader.cs
- DragEventArgs.cs
- XPathDescendantIterator.cs
- XmlSchemaElement.cs
- DbBuffer.cs
- MultilineStringConverter.cs
- OpenFileDialog.cs
- Hyperlink.cs
- KeyedCollection.cs
- ColorComboBox.cs
- ScrollableControl.cs
- XmlBindingWorker.cs
- CompositeTypefaceMetrics.cs
- RuleProcessor.cs
- ButtonBase.cs
- LineInfo.cs
- WorkflowRuntimeServiceElementCollection.cs
- FixedSOMImage.cs
- ViewGenResults.cs
- ChunkedMemoryStream.cs
- _DomainName.cs
- printdlgexmarshaler.cs
- NumberFunctions.cs
- DockingAttribute.cs
- InvokeWebServiceDesigner.cs
- TableHeaderCell.cs
- OLEDB_Enum.cs
- MissingManifestResourceException.cs
- HttpListenerRequest.cs
- AxWrapperGen.cs
- MetafileHeader.cs
- CodeExpressionCollection.cs
- PointAnimationClockResource.cs
- SqlUtils.cs
- Repeater.cs
- SiteOfOriginPart.cs
- DefaultHttpHandler.cs
- SchemaEntity.cs
- TripleDES.cs
- TagPrefixCollection.cs
- EventManager.cs
- _HeaderInfo.cs
- SqlMethods.cs
- SafeBitVector32.cs
- CompressedStack.cs
- XmlEnumAttribute.cs
- PermissionToken.cs
- LookupBindingPropertiesAttribute.cs
- Pts.cs
- PropertySourceInfo.cs
- HandleCollector.cs
- EntitySqlQueryState.cs
- DocumentGridPage.cs
- CommandLibraryHelper.cs
- WebConfigurationFileMap.cs
- SByteConverter.cs
- CounterNameConverter.cs
- InternalResources.cs
- WebPartActionVerb.cs
- TextTrailingCharacterEllipsis.cs
- Activator.cs
- AdPostCacheSubstitution.cs
- RoleService.cs
- IsolatedStorageFile.cs
- cookiecontainer.cs
- CodeSubDirectoriesCollection.cs
- HostedTransportConfigurationBase.cs
- CompareValidator.cs
- TextSerializer.cs
- SelectedDatesCollection.cs
- SiblingIterators.cs
- ProtocolsConfigurationHandler.cs
- XmlSchemaParticle.cs
- CustomActivityDesigner.cs
- SessionStateModule.cs
- UnwrappedTypesXmlSerializerManager.cs
- recordstatefactory.cs
- XPathParser.cs
- AppModelKnownContentFactory.cs
- DataGridTableStyleMappingNameEditor.cs
- FormatConvertedBitmap.cs
- MimeMapping.cs
- JpegBitmapDecoder.cs
- ConnectionInterfaceCollection.cs
- TableTextElementCollectionInternal.cs