Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / DataFormat.cs / 1 / DataFormat.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: Manage the data format. // // See spec at http://avalon/uis/Data%20Transfer%20clipboard%20dragdrop/Avalon%20Data%20Transfer%20Object.htm // // History: // 08/16/2002 : sangilj 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. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: Manage the data format. // // See spec at http://avalon/uis/Data%20Transfer%20clipboard%20dragdrop/Avalon%20Data%20Transfer%20Object.htm // // History: // 08/16/2002 : sangilj 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
- SystemResourceHost.cs
- ClientFormsIdentity.cs
- Console.cs
- CustomCategoryAttribute.cs
- MyContact.cs
- RoleGroup.cs
- GridViewRowPresenterBase.cs
- TableItemProviderWrapper.cs
- SvcMapFileSerializer.cs
- NotCondition.cs
- ResourceDefaultValueAttribute.cs
- MulticastNotSupportedException.cs
- MetadataArtifactLoaderFile.cs
- SetterBase.cs
- DataComponentGenerator.cs
- CellQuery.cs
- CorrelationHandle.cs
- DbInsertCommandTree.cs
- Int64KeyFrameCollection.cs
- PersonalizableAttribute.cs
- filewebrequest.cs
- ColumnPropertiesGroup.cs
- XmlChildNodes.cs
- X509Chain.cs
- ClaimSet.cs
- SystemResources.cs
- SoapRpcMethodAttribute.cs
- SafeEventHandle.cs
- AddValidationError.cs
- WinFormsUtils.cs
- WebSysDefaultValueAttribute.cs
- CapiSymmetricAlgorithm.cs
- LinkLabel.cs
- List.cs
- HashCryptoHandle.cs
- HttpCookie.cs
- Transform3DGroup.cs
- AssemblyAttributes.cs
- DataRecordInternal.cs
- XmlDataContract.cs
- CrossContextChannel.cs
- ToolboxItemAttribute.cs
- ProfileModule.cs
- EntityStoreSchemaFilterEntry.cs
- ObjectConverter.cs
- MaterialGroup.cs
- DbXmlEnabledProviderManifest.cs
- HttpFileCollectionWrapper.cs
- FontNameConverter.cs
- ClaimTypeElement.cs
- Grid.cs
- HttpPostServerProtocol.cs
- DataBoundLiteralControl.cs
- XmlBinaryReaderSession.cs
- SymmetricCryptoHandle.cs
- Models.cs
- CodePrimitiveExpression.cs
- TypeUtils.cs
- ScaleTransform3D.cs
- FormsAuthenticationUserCollection.cs
- DiagnosticEventProvider.cs
- Rijndael.cs
- ConstraintCollection.cs
- DefaultTraceListener.cs
- ConnectionPoolManager.cs
- SchemaContext.cs
- AffineTransform3D.cs
- TemplateField.cs
- ProfileParameter.cs
- EntryWrittenEventArgs.cs
- OutKeywords.cs
- FontUnit.cs
- UIElementAutomationPeer.cs
- CurrentChangedEventManager.cs
- CodeAttachEventStatement.cs
- ConnectionOrientedTransportChannelListener.cs
- PropertyGridEditorPart.cs
- ListBox.cs
- ProfilePropertyMetadata.cs
- TableItemStyle.cs
- TemplatingOptionsDialog.cs
- ToolStripSettings.cs
- TreeView.cs
- FixedHighlight.cs
- RemotingService.cs
- ReservationCollection.cs
- HttpCachePolicy.cs
- GrowingArray.cs
- DesignerView.cs
- SpecialFolderEnumConverter.cs
- HtmlInputHidden.cs
- MetadataUtilsSmi.cs
- ThreadStartException.cs
- QueryLifecycle.cs
- HtmlToClrEventProxy.cs
- MimeMapping.cs
- DataListItemEventArgs.cs
- EventLogger.cs
- ITextView.cs
- FragmentQueryKB.cs