IVsRunningDocumentTable2.CloseDocuments(UInt32, IVsHierarchy, UInt32) Yöntem

Tanım

Bir veya daha fazla belgeyi kapatır.

public:
 int CloseDocuments(System::UInt32 grfSaveOptions, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, System::UInt32 docCookie);
public:
 int CloseDocuments(unsigned int grfSaveOptions, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, unsigned int docCookie);
int CloseDocuments(unsigned int grfSaveOptions, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierarchy, unsigned int docCookie);
public int CloseDocuments (uint grfSaveOptions, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierarchy, uint docCookie);
abstract member CloseDocuments : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 -> int
Public Function CloseDocuments (grfSaveOptions As UInteger, pHierarchy As IVsHierarchy, docCookie As UInteger) As Integer

Parametreler

grfSaveOptions
UInt32

'ndaki __FRAMECLOSE Numaralandırmadaki bayraklar.

pHierarchy
IVsHierarchy

'ndaki IVsHierarchy Belgeleri kapatılacak olan nesne. Bkz. açıklamalar.

docCookie
UInt32

'ndaki Kapatılacak belgeyi temsil eden soyut bir değer. Bkz. açıklamalar.

Döndürülenler

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.

Açıklamalar

COM Imzası

Vsshell80. IDL adresinden:

HRESULT IVsRunningDocumentTable2::CloseDocuments(  
   [in] FRAMECLOSE grfSaveOptions,  
   [in] IVsHierarchy *pHierarchy,  
   [in] VSCOOKIE docCookie  
);  

pHierarchyVe docCookie parametreleri birbirini dışlıyor; yalnızca bir veya diğeri belirtilebilir. Parametrenin belirtilmesi, pHierarchy Bu hiyerarşideki tüm açık belgeleri kapatır, docCookie ancak parametreyi belirtirken bu tek belgeyi kapatır.

docCookieParametresi, FindAndLockDocument arabirimindeki veya yönteminden döndürülen değerdir RegisterAndLockDocument IVsRunningDocumentTable .

Şunlara uygulanır