using System;
namespace NTwain
{
///
/// Contains event data after whatever data from the source has been transferred.
///
public class DataTransferredEventArgs : EventArgs
{
///
/// Initializes a new instance of the class.
///
/// The data pointer.
/// The file.
internal DataTransferredEventArgs(IntPtr data, string filePath)
{
Data = data;
FilePath = filePath;
}
///
/// Gets pointer to the image data if applicable.
/// The data will be freed once the event handler ends
/// so consumers must complete whatever processing
/// required by then.
///
/// The data pointer.
public IntPtr Data { get; private set; }
///
/// Gets the filepath to the transferrerd data if applicable.
///
///
/// The file.
///
public string FilePath { get; private set; }
}
}