IVsPublishableProjectCfg::AdvisePublishStatusCallback Method (IVsPublishableProjectStatusCallback^, UInt32)

 

Establishes a callback for publishing status.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

int AdvisePublishStatusCallback(
	IVsPublishableProjectStatusCallback^ pIVsPublishStatusCallback,
	[OutAttribute] unsigned int% pdwCookie
)

Parameters

pIVsPublishStatusCallback
Type: Microsoft.VisualStudio.Shell.Interop::IVsPublishableProjectStatusCallback^

[in] Pointer to an IVsPublishableProjectStatusCallback interface.

pdwCookie
Type: System::UInt32

[out] Integer. A VSCOOKIE representing the added callback. Used in UnadvisePublishStatusCallback to identify the callback.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell80.idl:

[C++]

HRESULT IVsPublishableProjectCfg::AdvisePublishStatusCallback(
   [in] IVsPublishableProjectStatusCallback *pIVsPublishStatusCallback, 
   [out] VSCOOKIE *pdwCookie
);
Return to top
Show: