Udostępnij za pośrednictwem


IVsUIDataSource.AdvisePropertyChangeEvents Method

Definition

Registers to be notified when a property changes.

public:
 int AdvisePropertyChangeEvents(Microsoft::VisualStudio::Shell::Interop::IVsUIDataSourcePropertyChangeEvents ^ pAdvise, [Runtime::InteropServices::Out] System::UInt32 % pCookie);
int AdvisePropertyChangeEvents(Microsoft::VisualStudio::Shell::Interop::IVsUIDataSourcePropertyChangeEvents const & pAdvise, [Runtime::InteropServices::Out] unsigned int & pCookie);
public int AdvisePropertyChangeEvents (Microsoft.VisualStudio.Shell.Interop.IVsUIDataSourcePropertyChangeEvents pAdvise, out uint pCookie);
abstract member AdvisePropertyChangeEvents : Microsoft.VisualStudio.Shell.Interop.IVsUIDataSourcePropertyChangeEvents * uint32 -> int
Public Function AdvisePropertyChangeEvents (pAdvise As IVsUIDataSourcePropertyChangeEvents, ByRef pCookie As UInteger) As Integer

Parameters

pAdvise
IVsUIDataSourcePropertyChangeEvents

[in] The interface to call when a change occurs.

pCookie
UInt32

[out] Location to return an ID for this event sink.

Returns

Returns S_OK if the sink was registered.

Applies to