IAdviseSink.OnDataChange(FORMATETC, STGMEDIUM) IAdviseSink.OnDataChange(FORMATETC, STGMEDIUM) IAdviseSink.OnDataChange(FORMATETC, STGMEDIUM) IAdviseSink.OnDataChange(FORMATETC, STGMEDIUM) Method

定义

向当前已注册通知接收器的所有数据对象通知以下情况:对象中的数据已更改。Notifies all data objects currently registered advisory sinks that data in the object has changed.

public:
 void OnDataChange(System::Runtime::InteropServices::ComTypes::FORMATETC % format, System::Runtime::InteropServices::ComTypes::STGMEDIUM % stgmedium);
public void OnDataChange (ref System.Runtime.InteropServices.ComTypes.FORMATETC format, ref System.Runtime.InteropServices.ComTypes.STGMEDIUM stgmedium);
abstract member OnDataChange : FORMATETC * STGMEDIUM -> unit
Public Sub OnDataChange (ByRef format As FORMATETC, ByRef stgmedium As STGMEDIUM)

参数

format
FORMATETC FORMATETC FORMATETC FORMATETC

一个由引用传递的 FORMATETC,它描述调用数据对象的格式、目标设备、呈现和存储信息。A FORMATETC, passed by reference, which describes the format, target device, rendering, and storage information of the calling data object.

stgmedium
STGMEDIUM STGMEDIUM STGMEDIUM STGMEDIUM

一个由引用传递的 STGMEDIUM,它为调用数据对象定义存储介质(共用内存、磁盘文件、存储对象、流对象、图形设备接口 (GDI) 对象或未定义介质)和该介质的所属权。A STGMEDIUM, passed by reference, which defines the storage medium (global memory, disk file, storage object, stream object, Graphics Device Interface (GDI) object, or undefined) and ownership of that medium for the calling data object.

注解

有关IAdviseSink::OnDataChange的详细信息,请参阅 MSDN library。For more information about IAdviseSink::OnDataChange, see the MSDN Library.

适用于