生成数据对象和建议接收器之间的连接。
命名空间: Microsoft.VisualStudio.Shell
程序集: Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)
语法
声明
Public Function DAdvise ( _
pFormatetc As FORMATETC(), _
ADVF As UInteger, _
pAdvSink As IAdviseSink, _
<OutAttribute> ByRef pdwConnection As UInteger _
) As Integer
public int DAdvise(
FORMATETC[] pFormatetc,
uint ADVF,
IAdviseSink pAdvSink,
out uint pdwConnection
)
参数
- pFormatetc
类型:array<Microsoft.VisualStudio.OLE.Interop.FORMATETC[]
定义布局、目标设备,方面 " 和 " 供以后的通知要使用的结构。
- ADVF
类型:System.UInt32
设置标志该控件建议连接。
- pAdvSink
类型:Microsoft.VisualStudio.OLE.Interop.IAdviseSink
建议接收器。
- pdwConnection
类型:System.UInt32%
[out] 连接的标记。此标记用于后删除连接。
返回值
类型:System.Int32
如果方法成功,否则 [F:Microsoft.VisualStudio.VSConstants.S_OK;] ,错误代码。
实现
IDataObject.DAdvise(array<FORMATETC[], UInt32, IAdviseSink, UInt32%)
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。