Share via


DataObject.IDataObject.DAdvise(FORMATETC, ADVF, IAdviseSink, Int32) Yöntem

Tanım

Veri nesnesi ile danışmanlık havuzu arasında bir bağlantı oluşturur. Bu yöntem, danışmanlık havuzu destekleyen bir nesne tarafından çağrılır ve öneri havuzuna nesnenin verilerindeki değişikliklerle ilgili bildirim verilmesini sağlar.

 virtual int System.Runtime.InteropServices.ComTypes.IDataObject.DAdvise(System::Runtime::InteropServices::ComTypes::FORMATETC % pFormatetc, System::Runtime::InteropServices::ComTypes::ADVF advf, System::Runtime::InteropServices::ComTypes::IAdviseSink ^ pAdvSink, [Runtime::InteropServices::Out] int % pdwConnection) = System::Runtime::InteropServices::ComTypes::IDataObject::DAdvise;
[System.Security.SecurityCritical]
int IDataObject.DAdvise (ref System.Runtime.InteropServices.ComTypes.FORMATETC pFormatetc, System.Runtime.InteropServices.ComTypes.ADVF advf, System.Runtime.InteropServices.ComTypes.IAdviseSink pAdvSink, out int pdwConnection);
int IDataObject.DAdvise (ref System.Runtime.InteropServices.ComTypes.FORMATETC pFormatetc, System.Runtime.InteropServices.ComTypes.ADVF advf, System.Runtime.InteropServices.ComTypes.IAdviseSink pAdvSink, out int pdwConnection);
[<System.Security.SecurityCritical>]
abstract member System.Runtime.InteropServices.ComTypes.IDataObject.DAdvise : FORMATETC * System.Runtime.InteropServices.ComTypes.ADVF * System.Runtime.InteropServices.ComTypes.IAdviseSink * int -> int
override this.System.Runtime.InteropServices.ComTypes.IDataObject.DAdvise : FORMATETC * System.Runtime.InteropServices.ComTypes.ADVF * System.Runtime.InteropServices.ComTypes.IAdviseSink * int -> int
abstract member System.Runtime.InteropServices.ComTypes.IDataObject.DAdvise : FORMATETC * System.Runtime.InteropServices.ComTypes.ADVF * System.Runtime.InteropServices.ComTypes.IAdviseSink * int -> int
override this.System.Runtime.InteropServices.ComTypes.IDataObject.DAdvise : FORMATETC * System.Runtime.InteropServices.ComTypes.ADVF * System.Runtime.InteropServices.ComTypes.IAdviseSink * int -> int
Function DAdvise (ByRef pFormatetc As FORMATETC, advf As ADVF, pAdvSink As IAdviseSink, ByRef pdwConnection As Integer) As Integer Implements IDataObject.DAdvise

Parametreler

pFormatetc
FORMATETC

FORMATETC Gelecek bildirimler için kullanılacak biçimi, hedef cihazı, yönü ve ortamı tanımlayan, başvuru ile geçirilen bir yapı.

advf
ADVF

ADVF Danışmanlık bağlantısını denetlemek için bir grup bayrak belirten değerlerden biri.

pAdvSink
IAdviseSink

Değişiklik bildirimini IAdviseSink alacak danışmanlık havuzundaki arabirimin işaretçisi.

pdwConnection
Int32

Bu yöntem döndürdüğünde, bu bağlantıyı tanımlayan bir DWORD belirtecinin işaretçisini içerir. Bu belirteci daha sonra öğesine geçirerek danışmanlık bağlantısını silmek için DUnadvise(Int32)kullanabilirsiniz. Bu değer sıfırsa, bağlantı kurulamadı. Bu parametre, başlatmadan iletilir.

Döndürülenler

Bu yöntem E_INVALIDARG, E_UNEXPECTED ve E_OUTOFMEMORY standart dönüş değerlerini destekler.

Uygulamalar

Öznitelikler

Açıklamalar

Bu üye, açık bir arabirim üyesi uygulamasıdır. Yalnızca örnek bir IDataObject arabirime DataObject yayınlandığında kullanılabilir.

Şunlara uygulanır