IVsDeployableProjectCfg::AdviseDeployStatusCallback Method (IVsDeployStatusCallback^, UInt32)

 

Registers the environment to receive notifications of deployment status events.

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

int AdviseDeployStatusCallback(
	IVsDeployStatusCallback^ pIVsDeployStatusCallback,
	[OutAttribute] unsigned int% pdwCookie
)

Parameters

pIVsDeployStatusCallback
Type: Microsoft.VisualStudio.Shell.Interop::IVsDeployStatusCallback^

[in] Pointer to the environment's IVsDeployStatusCallback interface.

pdwCookie
Type: System::UInt32

[out] Pointer to an abstract handle that represents the completed registration.

Return Value

Type: System::Int32

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

From vsshell.idl:

HRESULT IVsDeployableProjectCfg::AdviseDeployStatusCallback(
   [in] IVsDeployStatusCallback *pIVsDeployStatusCallback,
   [out] VSCOOKIE *pdwCookie
);

The IVsDeployStatusCallback interface is the mechanism through which a project notifies the environment of changes to its deployment status. When a deployment event occurs, the project calls the appropriate IVsDeployStatusCallback method. For example, the project calls OnEndDeploy when a deployment is complete.

Return to top
Show: