IMessage.DataSource Property

DataSource Property

The DataSource property references the IDataSource interface on this object.


Property DataSource as IDataSource
HRESULT get_DataSource(IDataSource** pVal);


You can use the DataSource property to navigate to the IDataSource interface on the object implementing the IMessage interface. This is equivalent to using QueryInterface in C++ or Set in Visual Basic, or using the IMessage.GetInterface method.