Aracılığıyla paylaş


IVsSolutionEvents.OnQueryCloseSolution Yöntem (Object, Int32)

 

İstemciler olup çözüm 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 OnQueryCloseSolution(
    object pUnkReserved,
    ref int pfCancel
)
int OnQueryCloseSolution(
    Object^ pUnkReserved,
    int% pfCancel
)
abstract OnQueryCloseSolution : 
        pUnkReserved:Object *
        pfCancel:int byref -> int
Function OnQueryCloseSolution (
    pUnkReserved As Object,
    ByRef pfCancel As Integer
) As Integer

Parametreler

  • pUnkReserved
    Type: System.Object

    [in] Gelecekte kullanılmak üzere ayrılmış.

  • pfCancel
    Type: System.Int32

    [Çıkış] true Çözüm kapatma istemci reddetti gerekiyorsa.false İstemci çözüm kapatma 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::OnQueryCloseSolution(
   [in] IUnknown *pUnkReserved,
   [in,out] BOOL *pfCancel
);

Ayrıca bkz.

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

Başa dön