IVsSolutionEvents.OnBeforeCloseProject Yöntem (IVsHierarchy, Int32)
Dinleme istemcileri proje Kapatılmak üzere olduğunu bildirir.
Ad Alanı: Microsoft.VisualStudio.Shell.Interop
Derleme: Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)
Sözdizimi
int OnBeforeCloseProject(
IVsHierarchy pHierarchy,
int fRemoved
)
int OnBeforeCloseProject(
IVsHierarchy^ pHierarchy,
int fRemoved
)
abstract OnBeforeCloseProject :
pHierarchy:IVsHierarchy *
fRemoved:int -> int
Function OnBeforeCloseProject (
pHierarchy As IVsHierarchy,
fRemoved As Integer
) As Integer
Parametreler
pHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy[in] İşaretçi IVsHierarchy kapatılan projenin arabirimi.
fRemoved
Type: System.Int32[in] true Çözüm kapatıldı önce projeyi çözümden kaldırıldıysa.false Çözüm kapatıldığı sırada çözümden proje kaldırıldıysa.
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::OnBeforeCloseProject(
[in] IVsHierarchy *pHierarchy,
[in] BOOL fRemoved
);
Ayrıca bkz.
IVsSolutionEvents Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı
Başa dön