IVsDeployableProjectCfg.AdviseDeployStatusCallback Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers the environment to receive notifications of deployment status events.
public:
int AdviseDeployStatusCallback(Microsoft::VisualStudio::Shell::Interop::IVsDeployStatusCallback ^ pIVsDeployStatusCallback, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
int AdviseDeployStatusCallback(Microsoft::VisualStudio::Shell::Interop::IVsDeployStatusCallback const & pIVsDeployStatusCallback, [Runtime::InteropServices::Out] unsigned int & pdwCookie);
public int AdviseDeployStatusCallback (Microsoft.VisualStudio.Shell.Interop.IVsDeployStatusCallback pIVsDeployStatusCallback, out uint pdwCookie);
abstract member AdviseDeployStatusCallback : Microsoft.VisualStudio.Shell.Interop.IVsDeployStatusCallback * uint32 -> int
Public Function AdviseDeployStatusCallback (pIVsDeployStatusCallback As IVsDeployStatusCallback, ByRef pdwCookie As UInteger) As Integer
Parameters
- pIVsDeployStatusCallback
- IVsDeployStatusCallback
[in] Pointer to the environment's IVsDeployStatusCallback interface.
- pdwCookie
- UInt32
[out] Pointer to an abstract handle that represents the completed registration.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
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.