IVsSolution.CloseSolutionElement(UInt32, IVsHierarchy, UInt32) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Program aracılığıyla bir belgeyi, projeyi veya tüm çözümü kapatır.
public:
int CloseSolutionElement(System::UInt32 grfCloseOpts, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, System::UInt32 docCookie);
public:
int CloseSolutionElement(unsigned int grfCloseOpts, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, unsigned int docCookie);
int CloseSolutionElement(unsigned int grfCloseOpts, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHier, unsigned int docCookie);
public int CloseSolutionElement (uint grfCloseOpts, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHier, uint docCookie);
abstract member CloseSolutionElement : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 -> int
Public Function CloseSolutionElement (grfCloseOpts As UInteger, pHier As IVsHierarchy, docCookie As UInteger) As Integer
Parametreler
- grfCloseOpts
- UInt32
'ndaki Çözüm (. sln) dosyası için seçenekleri kapatın. Değerlerin listesi için grfCloseOpts bkz __VSSLNCLOSEOPTIONS ..
- pHier
- IVsHierarchy
'ndaki IVsHierarchy Kapatılacak belgenin arabirimine yönelik işaretçi.
- docCookie
- UInt32
'ndaki Kapatılan belge. Bu değer, çağırarak, çalışan Belge tablosundan döndürülür GetDocumentInfo(UInt32, UInt32, UInt32, UInt32, String, IVsHierarchy, UInt32, IntPtr) .
Döndürülenler
Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.
Açıklamalar
COM Imzası
Vsshell. IDL dosyasından:
HRESULT IVsSolution::CloseSolutionElement(
[in] VSSLNCLOSEOPTIONS grfCloseOpts,
[in] IVsHierarchy *pHier,
[in] VSCOOKIE docCookie
);
Tüm çözümü kapatmak için CloseSolutionElement ( grfCloseOpts , null , null ) çağırın. Tek bir projeyi kapatmak için CloseSolutionElement ( grfCloseOpts , phier ,) öğesini çağırın null . Tek bir belgeyi kapatmak için CloseSolutionElement ( grfCloseOpts , null ,) öğesini çağırın docCookie .