Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- UnsafeNativeMethods.cs
- TableCellCollection.cs
- basemetadatamappingvisitor.cs
- XsdCachingReader.cs
- RequiredAttributeAttribute.cs
- ClosableStream.cs
- Page.cs
- BooleanStorage.cs
- Parsers.cs
- PolicyException.cs
- AnnotationResourceChangedEventArgs.cs
- NameValuePermission.cs
- DictionaryCustomTypeDescriptor.cs
- MsmqOutputChannel.cs
- Evidence.cs
- PersonalizationProviderCollection.cs
- ArrayWithOffset.cs
- NotCondition.cs
- Brush.cs
- UserNameSecurityToken.cs
- _NegoStream.cs
- EventBuilder.cs
- ListItemCollection.cs
- _SSPISessionCache.cs
- GeneralTransform.cs
- RepeatInfo.cs
- ConcurrentQueue.cs
- DurableInstanceManager.cs
- AdapterDictionary.cs
- DataGridViewHeaderCell.cs
- ExecutedRoutedEventArgs.cs
- DecoderReplacementFallback.cs
- WebPartZoneBase.cs
- AlternateView.cs
- StructuredProperty.cs
- COM2IPerPropertyBrowsingHandler.cs
- _BufferOffsetSize.cs
- OdbcEnvironmentHandle.cs
- D3DImage.cs
- UrlPath.cs
- CapabilitiesRule.cs
- InputDevice.cs
- XmlObjectSerializerWriteContextComplex.cs
- Site.cs
- DrawingContextWalker.cs
- SymbolDocumentInfo.cs
- ServiceContractListItemList.cs
- ParseChildrenAsPropertiesAttribute.cs
- TypeForwardedFromAttribute.cs
- TimeEnumHelper.cs
- XmlReader.cs
- CommandPlan.cs
- ExtensionFile.cs
- PropertyInformation.cs
- ExtensionSurface.cs
- SafeFileHandle.cs
- SortAction.cs
- DefaultValueTypeConverter.cs
- Substitution.cs
- AccessControlList.cs
- ToolStripItemEventArgs.cs
- DynamicMethod.cs
- EdmMember.cs
- HttpCachePolicy.cs
- DesignerRegion.cs
- TextBoxBaseDesigner.cs
- ChtmlTextBoxAdapter.cs
- SecurityContextSecurityTokenResolver.cs
- ErrorFormatter.cs
- EdmProperty.cs
- coordinatorfactory.cs
- VisualBrush.cs
- SecurityProtocol.cs
- RowParagraph.cs
- HttpDigestClientElement.cs
- TargetControlTypeCache.cs
- DeflateEmulationStream.cs
- StandardCommands.cs
- MenuAdapter.cs
- DelayedRegex.cs
- LiteralControl.cs
- MouseEventArgs.cs
- DrawListViewSubItemEventArgs.cs
- KeyTimeConverter.cs
- SqlDataSourceStatusEventArgs.cs
- CodeIndexerExpression.cs
- AdapterDictionary.cs
- AuthenticodeSignatureInformation.cs
- BooleanSwitch.cs
- ImageListUtils.cs
- NameScopePropertyAttribute.cs
- FunctionImportMapping.cs
- ActivationServices.cs
- AnnotationHighlightLayer.cs
- XPathDocumentBuilder.cs
- FontUnit.cs
- smtpconnection.cs
- Vector3D.cs
- KeyGesture.cs
- srgsitem.cs