This topic has not yet been rated - Rate this topic

DataObjectPastingEventArgs::DataObject Property

Gets or sets a suggested DataObject to use for the paste operation.

Namespace:  System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)
public:
property IDataObject^ DataObject {
	IDataObject^ get ();
	void set (IDataObject^ value);
}

Property Value

Type: System.Windows::IDataObject
The currently suggested DataObject to use for the paste operation.
Getting this value returns the currently suggested DataObject for the paste operation.
Setting this value specifies a new suggested DataObject to use for the paste operation.
ExceptionCondition
ArgumentNullException

Raised when an attempt is made to set this property to null.

ArgumentException

Raised when an attempt is made to set this property to a data object that contains no data formats.

Initially this property contains a DataObject that is identical to that stored in the SourceDataObject property. Custom pasting event handlers can specify a new suggested DataObject to paste by setting this property.

A DataObject stored in this property must have at least one data format, the first of which is automatically applied to the FormatToApply property when this property is set.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.