Aracılığıyla paylaş


IVsSolutionEvents.OnQueryCloseProject Yöntem (IVsHierarchy, Int32, Int32)

 

İstemciler olup proje kapatılabilir ilişkin dinleme sorgular.

Ad Alanı:   Microsoft.VisualStudio.Shell.Interop
Derleme:  Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)

Sözdizimi

int OnQueryCloseProject(
    IVsHierarchy pHierarchy,
    int fRemoving,
    ref int pfCancel
)
int OnQueryCloseProject(
    IVsHierarchy^ pHierarchy,
    int fRemoving,
    int% pfCancel
)
abstract OnQueryCloseProject : 
        pHierarchy:IVsHierarchy *
        fRemoving:int *
        pfCancel:int byref -> int
Function OnQueryCloseProject (
    pHierarchy As IVsHierarchy,
    fRemoving As Integer,
    ByRef pfCancel As Integer
) As Integer

Parametreler

  • fRemoving
    Type: System.Int32

    [in] true Çözüm kapatılmadan önce projeyi çözümden kaldırılıyor gerekiyorsa.false Çözüm kapalıyken projeyi çözümden kaldırılıyor gerekiyorsa.

  • pfCancel
    Type: System.Int32

    [Çıkış] true Proje kapanmasını istemci reddetti gerekiyorsa.false İstemci projenin kapanış onaylanırsa.

Dönüş Değeri

Type: System.Int32

Yöntem başarılı olursa, döndürür S_OK. Başarısız olursa, bir hata kodu döndürür.

Notlar

COM imza

Vsshell.idl:

HRESULT IVsSolutionEvents::OnQueryCloseProject(
   [in] IVsHierarchy *pHierarchy,
   [in] BOOL fRemoving,
   [in,out] BOOL *pfCancel
);

Ayrıca bkz.

IVsSolutionEvents Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı

Başa dön