共用方式為


IVsDeployableProjectCfg.AdviseDeployStatusCallback Method

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)

Syntax

'宣告
Function AdviseDeployStatusCallback ( _
    pIVsDeployStatusCallback As IVsDeployStatusCallback, _
    <OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
'用途
Dim instance As IVsDeployableProjectCfg
Dim pIVsDeployStatusCallback As IVsDeployStatusCallback
Dim pdwCookie As UInteger
Dim returnValue As Integer

returnValue = instance.AdviseDeployStatusCallback(pIVsDeployStatusCallback, _
    pdwCookie)
int AdviseDeployStatusCallback(
    IVsDeployStatusCallback pIVsDeployStatusCallback,
    out uint pdwCookie
)
int AdviseDeployStatusCallback(
    [InAttribute] IVsDeployStatusCallback^ pIVsDeployStatusCallback, 
    [OutAttribute] unsigned int% pdwCookie
)
abstract AdviseDeployStatusCallback : 
        pIVsDeployStatusCallback:IVsDeployStatusCallback * 
        pdwCookie:uint32 byref -> int 
function AdviseDeployStatusCallback(
    pIVsDeployStatusCallback : IVsDeployStatusCallback, 
    pdwCookie : uint
) : int

Parameters

  • 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.

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.

.NET Framework Security

See Also

Reference

IVsDeployableProjectCfg Interface

IVsDeployableProjectCfg Members

Microsoft.VisualStudio.Shell.Interop Namespace