IVsSolution2.CloseSolutionElement Yöntem (UInt32, IVsHierarchy, UInt32)
Program aracılığıyla bir belge, proje veya çözümün tamamı kapatır.
Ad Alanı: Microsoft.VisualStudio.Shell.Interop
Derleme: Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)
Sözdizimi
int CloseSolutionElement(
uint grfCloseOpts,
IVsHierarchy pHier,
uint docCookie
)
int CloseSolutionElement(
unsigned int grfCloseOpts,
IVsHierarchy^ pHier,
unsigned int docCookie
)
abstract CloseSolutionElement :
grfCloseOpts:uint32 *
pHier:IVsHierarchy *
docCookie:uint32 -> int
Function CloseSolutionElement (
grfCloseOpts As UInteger,
pHier As IVsHierarchy,
docCookie As UInteger
) As Integer
Parametreler
grfCloseOpts
Type: System.UInt32[in] Çözüm (.sln) dosyası için Seçenekleri'ni kapatın. Bir listesi için grfCloseOpts değerler, bakın __VSSLNCLOSEOPTIONS.
pHier
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy[in] İşaretçi IVsHierarchy kapatmak için belgenin arabirimi.
docCookie
Type: System.UInt32[in] Bir belge kapatıldı. Bu değer çalışan Belge tablosundan çağrılarak döndürülür GetDocumentInfo.
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.
Uygulanan
IVsSolution.CloseSolutionElement(UInt32, IVsHierarchy, UInt32)
Notlar
Vsshell.idl:
HRESULT IVsSolution2::CloseSolutionElement(
[in] VSSLNCLOSEOPTIONS grfCloseOpts,
[in] IVsHierarchy *pHier,
[in] VSCOOKIE docCookie
);
Çözümün tamamı kapatmak için çağrı CloseSolutionElement(grfCloseOpts, null, null). Tek bir projeyi kapatmak için çağrı CloseSolutionElement(grfCloseOpts, phier, null). Tek bir belgeye kapatmak için çağrı CloseSolutionElement(grfCloseOpts, null, docCookie).
Ayrıca bkz.
IVsSolution2 Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı
Başa dön