ArcObjects Library Reference (SystemUI)  

IDataObjectHelper.GetFiles Method

If the DataObject format supports files, returns a safe array of strings representing filenames.

[Visual Basic .NET]
Public Function GetFiles ( _
) As Object
[C#]
public object GetFiles (
);
[C++]
HRESULT GetFiles(
  VARIANT* pvData
);
[C++]

Parameters

pvData [out, retval]   pvData is a parameter of type VARIANT

Product Availability

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

Description

Use this method when CanGetFiles returns true. Iterate through the safe array to retrieve a list of filenames. This is typically used when data is being dropped onto the PageLayoutControl or MapControl from Windows Explorer.

Errors Returned

1028 800A0404: The suppllied name object could not be created by any of the available layer factories 

See Also

IDataObjectHelper Interface

.NET Related Topics

How to drop data onto the MapControl |