ADVF ADVF ADVF ADVF Enum

定义

当设置建议接收器或缓存与对象的连接时,指定请求的行为。Specifies the requested behavior when setting up an advise sink or a caching connection with an object.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class ADVF
[System.Flags]
public enum ADVF
type ADVF = 
Public Enum ADVF
继承
属性

字段

ADVF_DATAONSTOP ADVF_DATAONSTOP ADVF_DATAONSTOP ADVF_DATAONSTOP 64

对于数据通知连接,请确保数据的可访问性。For data advisory connections, assures accessibility to data.

ADVF_NODATA ADVF_NODATA ADVF_NODATA ADVF_NODATA 1

对于数据通知连接(DAdvise(FORMATETC, ADVF, IAdviseSink, Int32)Advise(Object, Int32)),此标志请求数据对象在它调用 OnDataChange(FORMATETC, STGMEDIUM) 时不要发送数据。For data advisory connections (DAdvise(FORMATETC, ADVF, IAdviseSink, Int32) or Advise(Object, Int32)), this flag requests the data object not to send data when it calls OnDataChange(FORMATETC, STGMEDIUM).

ADVF_ONLYONCE ADVF_ONLYONCE ADVF_ONLYONCE ADVF_ONLYONCE 4

请求对象在删除连接前只进行一次更改通知或缓存更新。Requests that the object make only one change notification or cache update before deleting the connection.

ADVF_PRIMEFIRST ADVF_PRIMEFIRST ADVF_PRIMEFIRST ADVF_PRIMEFIRST 2

请求对象在对 OnDataChange(FORMATETC, STGMEDIUM) 进行初始调用(对于数据或视图通知连接)或更新缓存(对于缓存连接)之前不要等待数据或视图更改。Requests that the object not wait for the data or view to change before making an initial call to OnDataChange(FORMATETC, STGMEDIUM) (for data or view advisory connections) or updating the cache (for cache connections).

ADVFCACHE_FORCEBUILTIN ADVFCACHE_FORCEBUILTIN ADVFCACHE_FORCEBUILTIN ADVFCACHE_FORCEBUILTIN 16

此值由执行对象绘制的 DLL 对象应用程序和对象处理程序使用。This value is used by DLL object applications and object handlers that perform the drawing of their objects.

ADVFCACHE_NOHANDLER ADVFCACHE_NOHANDLER ADVFCACHE_NOHANDLER ADVFCACHE_NOHANDLER 8

ADVFCACHE_FORCEBUILTIN 的同义词,该词更为常用。Synonym for ADVFCACHE_FORCEBUILTIN, which is used more often.

ADVFCACHE_ONSAVE ADVFCACHE_ONSAVE ADVFCACHE_ONSAVE ADVFCACHE_ONSAVE 32

对于缓存连接,此标志只在保存包含缓存的对象时更新缓存的表示形式。For cache connections, this flag updates the cached representation only when the object containing the cache is saved.

注解

有关其他信息ADVF,请参阅 MDSN 库。For additional information about ADVF, see the MDSN library.

在本机代码中的 COM 方法将返回的 HRESULT 时,公共语言运行时将引发异常。The common language runtime throws an exception when a COM method in native code returns an HRESULT. 有关更多信息,请参见 How to: Map HRESULTs and ExceptionsFor more information, see How to: Map HRESULTs and Exceptions.

适用于