Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / DataFormat.cs / 1 / DataFormat.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: Manage the data format. // // See spec at [....]/uis/Data%20Transfer%20clipboard%20dragdrop/Avalon%20Data%20Transfer%20Object.htm // // History: // 08/16/2002 : [....] Created // //--------------------------------------------------------------------------- using MS.Internal.PresentationCore; namespace System.Windows { #region DataFormat Class ////// Represents a data format type. /// public sealed class DataFormat { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Initializes a new instance of the DataFormat class and specifies format name and id. /// public DataFormat(string name, int id) { if (name == null) { throw new ArgumentNullException("name"); } if (name == string.Empty) { throw new ArgumentException(SR.Get(SRID.DataObject_EmptyFormatNotAllowed)); } this._name = name; this._id = id; } #endregion Constructors //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- #region Public Properties ////// Specifies the name of this format. /// This field is read-only. /// public string Name { get { return _name; } } ////// Specifies the Id number for this format. /// This field is read-only. /// public int Id { get { return _id; } } #endregion Public Properties //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields // The registered clipboard format name string. readonly string _name; // The registered clipboard format id. readonly int _id; #endregion Private Fields } #endregion DataFormat Class } // 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
- XmlDataSourceView.cs
- ApplicationException.cs
- StrongTypingException.cs
- DataBoundControlHelper.cs
- InheritanceContextChangedEventManager.cs
- EdgeProfileValidation.cs
- UpdateTracker.cs
- XamlLoadErrorInfo.cs
- ItemAutomationPeer.cs
- ImmComposition.cs
- MemberExpression.cs
- GridViewCancelEditEventArgs.cs
- DataServiceProcessingPipeline.cs
- TextParaLineResult.cs
- FamilyTypeface.cs
- SafeFileHandle.cs
- CrossContextChannel.cs
- ToolStripDropDownMenu.cs
- CodeConditionStatement.cs
- DeleteStoreRequest.cs
- SecurityState.cs
- RecognizeCompletedEventArgs.cs
- DecodeHelper.cs
- Floater.cs
- VectorAnimation.cs
- ConfigXmlAttribute.cs
- BitStack.cs
- StandardCommands.cs
- SurrogateEncoder.cs
- SchemaNotation.cs
- EntityViewGenerationAttribute.cs
- MarkupCompilePass2.cs
- DataObjectCopyingEventArgs.cs
- WindowsButton.cs
- TraceHandlerErrorFormatter.cs
- ToolZone.cs
- PropertyOverridesDialog.cs
- DateTimeConverter.cs
- UriTemplateDispatchFormatter.cs
- FileDialogCustomPlacesCollection.cs
- QilValidationVisitor.cs
- NameHandler.cs
- MailAddressCollection.cs
- Encoder.cs
- PkcsMisc.cs
- SqlDataRecord.cs
- HandleExceptionArgs.cs
- SQLMembershipProvider.cs
- WebPartVerbCollection.cs
- OpenTypeLayoutCache.cs
- ImageFormat.cs
- PropertyRef.cs
- SponsorHelper.cs
- GACIdentityPermission.cs
- InputProcessorProfiles.cs
- DataGridTemplateColumn.cs
- SignedXml.cs
- ImplicitInputBrush.cs
- XPathNavigator.cs
- CodeTryCatchFinallyStatement.cs
- ListViewDataItem.cs
- JulianCalendar.cs
- LineServices.cs
- QueryAsyncResult.cs
- SchemaInfo.cs
- RootBrowserWindow.cs
- DataBindingList.cs
- DockAndAnchorLayout.cs
- NTAccount.cs
- DataServiceBuildProvider.cs
- XPathNavigatorKeyComparer.cs
- XmlDocument.cs
- ListSurrogate.cs
- DataControlFieldCollection.cs
- DetailsViewModeEventArgs.cs
- FixUpCollection.cs
- SqlUnionizer.cs
- PassportAuthentication.cs
- PeerNameRecordCollection.cs
- NamespaceImport.cs
- DataGridSortCommandEventArgs.cs
- HttpListenerRequest.cs
- TripleDESCryptoServiceProvider.cs
- XmlObjectSerializerWriteContextComplex.cs
- XmlCodeExporter.cs
- AsymmetricAlgorithm.cs
- HostedTransportConfigurationManager.cs
- DashStyles.cs
- ServiceModelDictionary.cs
- TdsParserHelperClasses.cs
- TextTreeTextBlock.cs
- CodeTypeReferenceCollection.cs
- EntityKeyElement.cs
- PrintPreviewControl.cs
- SelectionManager.cs
- ContentElement.cs
- XmlSchemaDatatype.cs
- MenuStrip.cs
- ColumnCollection.cs
- HttpClientChannel.cs