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
- DesignerActionList.cs
- ErrorWebPart.cs
- ListSourceHelper.cs
- ColorAnimationUsingKeyFrames.cs
- COM2IDispatchConverter.cs
- XamlTemplateSerializer.cs
- Span.cs
- ProviderConnectionPoint.cs
- CacheAxisQuery.cs
- CustomAttributeSerializer.cs
- WebRequestModuleElement.cs
- LowerCaseStringConverter.cs
- CompilerGlobalScopeAttribute.cs
- Literal.cs
- SqlDataSourceTableQuery.cs
- Guid.cs
- SplashScreen.cs
- AmbientLight.cs
- DataGridViewEditingControlShowingEventArgs.cs
- elementinformation.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- ProfileBuildProvider.cs
- DiscoveryExceptionDictionary.cs
- CapiHashAlgorithm.cs
- Perspective.cs
- ObjectStateFormatter.cs
- Version.cs
- SoundPlayerAction.cs
- TokenBasedSetEnumerator.cs
- RepeaterCommandEventArgs.cs
- ConditionalDesigner.cs
- ApplicationProxyInternal.cs
- ShaderEffect.cs
- Timer.cs
- EntityParameter.cs
- XmlSchemaCollection.cs
- SQLInt32Storage.cs
- IdentityManager.cs
- ImageDrawing.cs
- WrapPanel.cs
- CodeSubDirectoriesCollection.cs
- ConditionBrowserDialog.cs
- XmlObjectSerializerReadContextComplex.cs
- DiscoveryMessageSequence11.cs
- StringDictionary.cs
- HtmlInputPassword.cs
- AttachedPropertyBrowsableAttribute.cs
- SplineKeyFrames.cs
- UnmanagedMemoryStream.cs
- Overlapped.cs
- OptimizerPatterns.cs
- COM2Properties.cs
- SystemNetworkInterface.cs
- DrawingCollection.cs
- BasicBrowserDialog.cs
- LoginCancelEventArgs.cs
- SamlAssertion.cs
- diagnosticsswitches.cs
- ZipPackagePart.cs
- WsdlBuildProvider.cs
- CodeVariableDeclarationStatement.cs
- SendKeys.cs
- ButtonPopupAdapter.cs
- ErrorItem.cs
- FolderBrowserDialogDesigner.cs
- XsltException.cs
- Point3DCollection.cs
- SelectManyQueryOperator.cs
- AnimationException.cs
- AttachedAnnotation.cs
- Operand.cs
- MulticastNotSupportedException.cs
- ToolStripItemRenderEventArgs.cs
- ArraySegment.cs
- PreviewKeyDownEventArgs.cs
- PositiveTimeSpanValidator.cs
- EntityTypeEmitter.cs
- AggregateNode.cs
- EndOfStreamException.cs
- DesignerActionPanel.cs
- ObjectItemCachedAssemblyLoader.cs
- SmiEventStream.cs
- XamlGridLengthSerializer.cs
- WebPartVerbCollection.cs
- CaseKeyBox.xaml.cs
- SymmetricKeyWrap.cs
- Number.cs
- MethodImplAttribute.cs
- TextHintingModeValidation.cs
- Evaluator.cs
- TypeBuilderInstantiation.cs
- ByteAnimationUsingKeyFrames.cs
- InvalidFilterCriteriaException.cs
- TextRenderer.cs
- NameSpaceExtractor.cs
- SqlUserDefinedAggregateAttribute.cs
- GridViewSortEventArgs.cs
- LayoutInformation.cs
- _DomainName.cs
- ScriptBehaviorDescriptor.cs