Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / DataFormat.cs / 1305600 / 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
- InternalBufferOverflowException.cs
- SoapElementAttribute.cs
- PersonalizationState.cs
- PrintDialogException.cs
- TimeStampChecker.cs
- NativeMethods.cs
- TraceContext.cs
- ChildTable.cs
- CookielessData.cs
- MemberCollection.cs
- DbProviderServices.cs
- TargetConverter.cs
- SamlSubjectStatement.cs
- TreeNodeBindingCollection.cs
- FullTextBreakpoint.cs
- UserPersonalizationStateInfo.cs
- TypefaceCollection.cs
- iisPickupDirectory.cs
- ListBase.cs
- AutoCompleteStringCollection.cs
- RelativeSource.cs
- AssemblyUtil.cs
- HttpApplicationStateWrapper.cs
- PanelStyle.cs
- PointF.cs
- HostedBindingBehavior.cs
- TextDecorationLocationValidation.cs
- UrlMapping.cs
- HtmlUtf8RawTextWriter.cs
- JavaScriptObjectDeserializer.cs
- COM2PictureConverter.cs
- CriticalFinalizerObject.cs
- ImageField.cs
- XmlReturnWriter.cs
- EndpointDiscoveryMetadataCD1.cs
- DataRecordInternal.cs
- ConfigPathUtility.cs
- Cursor.cs
- FixedSOMImage.cs
- WindowsSlider.cs
- RecordManager.cs
- CodeStatementCollection.cs
- ScaleTransform3D.cs
- IItemProperties.cs
- TimeSpanValidator.cs
- OpenTypeCommon.cs
- QuaternionAnimationBase.cs
- TypeLoadException.cs
- SizeChangedEventArgs.cs
- Group.cs
- DataProviderNameConverter.cs
- Parser.cs
- SQLUtility.cs
- _Win32.cs
- RadioButtonAutomationPeer.cs
- DelegateOutArgument.cs
- BinaryMessageFormatter.cs
- ComMethodElementCollection.cs
- CardSpaceException.cs
- LayoutUtils.cs
- SerializationEventsCache.cs
- Matrix3DConverter.cs
- ScriptingWebServicesSectionGroup.cs
- _SafeNetHandles.cs
- Vector3dCollection.cs
- _UncName.cs
- ContractHandle.cs
- AnchoredBlock.cs
- UTF7Encoding.cs
- CurrencyWrapper.cs
- CodeTypeOfExpression.cs
- ErrorWrapper.cs
- ConfigErrorGlyph.cs
- SrgsDocumentParser.cs
- StorageAssociationSetMapping.cs
- SplitterEvent.cs
- MsmqIntegrationMessageProperty.cs
- DataObject.cs
- RemotingServices.cs
- Int32KeyFrameCollection.cs
- PointKeyFrameCollection.cs
- HostingEnvironmentException.cs
- ThrowHelper.cs
- VisualBrush.cs
- Light.cs
- ApplySecurityAndSendAsyncResult.cs
- QilReference.cs
- StringValidatorAttribute.cs
- ExternalCalls.cs
- FileRecordSequence.cs
- DataDocumentXPathNavigator.cs
- EncoderNLS.cs
- ParserHooks.cs
- TypeDelegator.cs
- Soap12ServerProtocol.cs
- ObjectDataProvider.cs
- DefaultMemberAttribute.cs
- StringComparer.cs
- BamlLocalizer.cs
- SerializationHelper.cs