Compartilhar via


IVsPublishableProjectCfg.AdvisePublishStatusCallback Method

Definition

Establishes a callback for publishing status.

public:
 int AdvisePublishStatusCallback(Microsoft::VisualStudio::Shell::Interop::IVsPublishableProjectStatusCallback ^ pIVsPublishStatusCallback, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
int AdvisePublishStatusCallback(Microsoft::VisualStudio::Shell::Interop::IVsPublishableProjectStatusCallback const & pIVsPublishStatusCallback, [Runtime::InteropServices::Out] unsigned int & pdwCookie);
public int AdvisePublishStatusCallback (Microsoft.VisualStudio.Shell.Interop.IVsPublishableProjectStatusCallback pIVsPublishStatusCallback, out uint pdwCookie);
abstract member AdvisePublishStatusCallback : Microsoft.VisualStudio.Shell.Interop.IVsPublishableProjectStatusCallback * uint32 -> int
Public Function AdvisePublishStatusCallback (pIVsPublishStatusCallback As IVsPublishableProjectStatusCallback, ByRef pdwCookie As UInteger) As Integer

Parameters

pIVsPublishStatusCallback
IVsPublishableProjectStatusCallback

[in] Pointer to an IVsPublishableProjectStatusCallback interface.

pdwCookie
UInt32

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

Returns

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  
);  

Applies to