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
- SHA1Managed.cs
- WebPartManager.cs
- ClonableStack.cs
- QuadraticBezierSegment.cs
- SoapHeaderAttribute.cs
- RelationshipEntry.cs
- Propagator.ExtentPlaceholderCreator.cs
- MembershipUser.cs
- MyContact.cs
- SQLMembershipProvider.cs
- PartialArray.cs
- DecryptedHeader.cs
- ObjectViewListener.cs
- EllipseGeometry.cs
- SchemaHelper.cs
- RegionInfo.cs
- __Error.cs
- AddDataControlFieldDialog.cs
- SecureEnvironment.cs
- DataErrorValidationRule.cs
- Collection.cs
- AssemblyUtil.cs
- KeySpline.cs
- HierarchicalDataBoundControl.cs
- FaultBookmark.cs
- DebugView.cs
- LookupBindingPropertiesAttribute.cs
- Point4DConverter.cs
- FontStyleConverter.cs
- UnsupportedPolicyOptionsException.cs
- ToolStripCollectionEditor.cs
- CallbackValidator.cs
- Mapping.cs
- UInt32Converter.cs
- RawStylusSystemGestureInputReport.cs
- NativeMethods.cs
- SamlSubject.cs
- TableLayoutStyleCollection.cs
- PostBackTrigger.cs
- TextEvent.cs
- WebServiceHost.cs
- ConditionalAttribute.cs
- ImageSource.cs
- PenContext.cs
- LayoutEngine.cs
- _BasicClient.cs
- Parameter.cs
- HttpServerUtilityWrapper.cs
- SQLMoney.cs
- EventMap.cs
- DataFormats.cs
- Pen.cs
- StringSorter.cs
- MailWebEventProvider.cs
- IntegerValidatorAttribute.cs
- XmlSerializer.cs
- WindowsFormsSectionHandler.cs
- DataGridCell.cs
- StrongNameUtility.cs
- ListViewGroup.cs
- NavigatorInvalidBodyAccessException.cs
- StylusOverProperty.cs
- MetadataItemSerializer.cs
- LabelInfo.cs
- PropertyCondition.cs
- RootAction.cs
- ACE.cs
- GeometryCombineModeValidation.cs
- ParameterCollection.cs
- ConsoleCancelEventArgs.cs
- EmptyElement.cs
- InputReferenceExpression.cs
- InstanceDescriptor.cs
- KnownTypesProvider.cs
- UxThemeWrapper.cs
- ExpressionBinding.cs
- SynchronizedCollection.cs
- BaseParaClient.cs
- TextViewBase.cs
- EntityType.cs
- FileNotFoundException.cs
- ScrollItemPattern.cs
- CodeTypeMember.cs
- BackgroundFormatInfo.cs
- Border.cs
- Double.cs
- XmlSchemaSimpleContentExtension.cs
- HtmlImage.cs
- WebPartActionVerb.cs
- XamlGridLengthSerializer.cs
- GuidConverter.cs
- ActivityDefaults.cs
- QueryCacheEntry.cs
- HeaderedContentControl.cs
- DefaultPropertiesToSend.cs
- ViewSimplifier.cs
- DataExpression.cs
- EntityWithKeyStrategy.cs
- DataGridAddNewRow.cs
- DrawingState.cs