Compartir a través de


IVsPublishableProjectCfg.AdvisePublishStatusCallback Method

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)

Syntax

'Declaration
Function AdvisePublishStatusCallback ( _
    pIVsPublishStatusCallback As IVsPublishableProjectStatusCallback, _
    <OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
int AdvisePublishStatusCallback(
    IVsPublishableProjectStatusCallback pIVsPublishStatusCallback,
    out uint pdwCookie
)
int AdvisePublishStatusCallback(
    [InAttribute] IVsPublishableProjectStatusCallback^ pIVsPublishStatusCallback, 
    [OutAttribute] unsigned int% pdwCookie
)
abstract AdvisePublishStatusCallback : 
        pIVsPublishStatusCallback:IVsPublishableProjectStatusCallback * 
        pdwCookie:uint32 byref -> int
function AdvisePublishStatusCallback(
    pIVsPublishStatusCallback : IVsPublishableProjectStatusCallback, 
    pdwCookie : uint
) : int

Parameters

  • pdwCookie
    Type: UInt32%

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

Return Value

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

Remarks

COM Signature

From vsshell80.idl:

[C++]

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

.NET Framework Security

See Also

Reference

IVsPublishableProjectCfg Interface

Microsoft.VisualStudio.Shell.Interop Namespace