This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > ID > IDataObjectHelper Interface > IDataObjectHelper.GetData Method (ArcObjects .NET 10.4 SDK) |
If specified DataObject format can be retrieved, returns the data as safe array of bytes.
[Visual Basic .NET] Public Function GetData ( _ ByVal format As Integer _ ) As Object
[C#] public object GetData ( int format );
[C++]
HRESULT GetData(
long format,
VARIANT* pvData
);
[C++]
Parameters format [in] format is a parameter of type long pvData [out, retval] pvData is a parameter of type VARIANT
Returns a safe array of bytes from the DataObject, given the specified format. This safe arrray is not processed in anyway. Typically used when dropping data onto the PageLayoutControl and MapControl from other applications.
1026 800A0402: The requested data format was not found in the DataObject
1027 800A0403: Data could not be retrieved from the DataObject