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
- EntitySetBaseCollection.cs
- LinqDataSourceHelper.cs
- HttpAsyncResult.cs
- StateManagedCollection.cs
- SecurityContextKeyIdentifierClause.cs
- LinqDataSourceDeleteEventArgs.cs
- StylusButtonCollection.cs
- SecurityManager.cs
- Rect3DConverter.cs
- FixedDocument.cs
- ItemCollection.cs
- ImageBrush.cs
- RawStylusActions.cs
- SR.cs
- WorkflowDefinitionDispenser.cs
- ApplicationId.cs
- CommentEmitter.cs
- GeometryGroup.cs
- HostedNamedPipeTransportManager.cs
- BindingContext.cs
- ResourceWriter.cs
- CqlGenerator.cs
- securitycriticaldata.cs
- OleDbConnectionFactory.cs
- Oid.cs
- XmlSchemaComplexContent.cs
- SystemSounds.cs
- xsdvalidator.cs
- SiteOfOriginPart.cs
- OrderedDictionary.cs
- HtmlTableRow.cs
- StylusTip.cs
- AutomationPropertyInfo.cs
- ColumnCollection.cs
- ResumeStoryboard.cs
- TextBlock.cs
- PeerToPeerException.cs
- EdmPropertyAttribute.cs
- SafeTimerHandle.cs
- DefaultEventAttribute.cs
- Matrix.cs
- InstalledVoice.cs
- IsolatedStorageFilePermission.cs
- GatewayIPAddressInformationCollection.cs
- TCPListener.cs
- NotifyIcon.cs
- CodeAttributeArgument.cs
- SoapSchemaImporter.cs
- SystemTcpConnection.cs
- SmiEventSink.cs
- Pen.cs
- RC2.cs
- HMAC.cs
- DeploymentSectionCache.cs
- Margins.cs
- TrackPoint.cs
- FileDataSource.cs
- AccessDataSource.cs
- assertwrapper.cs
- TimeSpanOrInfiniteConverter.cs
- CompiledIdentityConstraint.cs
- DayRenderEvent.cs
- NameValuePair.cs
- MediaTimeline.cs
- SignedXml.cs
- NetNamedPipeSecurityElement.cs
- EventLogPermissionEntry.cs
- FileIOPermission.cs
- TemplateXamlTreeBuilder.cs
- Hashtable.cs
- IPPacketInformation.cs
- CacheOutputQuery.cs
- OraclePermissionAttribute.cs
- ExpandCollapseProviderWrapper.cs
- KeyTime.cs
- CurrencyManager.cs
- WsatTransactionFormatter.cs
- IriParsingElement.cs
- Mapping.cs
- Math.cs
- Invariant.cs
- HttpRawResponse.cs
- SqlIdentifier.cs
- ResizeGrip.cs
- TagNameToTypeMapper.cs
- Activity.cs
- ButtonFieldBase.cs
- DesignerActionVerbList.cs
- Triangle.cs
- TransformerInfoCollection.cs
- EditBehavior.cs
- validation.cs
- SafeFileMappingHandle.cs
- OrthographicCamera.cs
- SymbolMethod.cs
- IndicCharClassifier.cs
- DataGridViewSelectedCellCollection.cs
- oledbconnectionstring.cs
- WorkItem.cs
- DBSchemaRow.cs