This document is archived and information here might be outdated.  Recommended version.


IDataObjectHelper.GetData Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (SystemUI)  

IDataObjectHelper.GetData Method

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

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.

Errors Returned

1026 800A0402: The requested data format was not found in the DataObject 

1027 800A0403: Data could not be retrieved from the DataObject 

See Also

IDataObjectHelper Interface