IVsSolution.SaveSolutionElement(UInt32, IVsHierarchy, UInt32) Yöntem

Tanım

Program aracılığıyla bir belgeyi, projeyi veya tüm çözümü kaydeder.

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

Parametreler

grfSaveOpts
UInt32

'ndaki Kaydetme seçenekleri. Listesi için grfSaveOpts bkz __VSSLNSAVEOPTIONS ..

pHier
IVsHierarchy

'ndaki IVsHierarchy Kaydedilecek belgenin arabirimine yönelik işaretçi.

docCookie
UInt32

'ndaki Kaydedilen öğeye soyut tanıtıcı.

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ı

Vsshell. IDL dosyasından:

HRESULT IVsSolution::SaveSolutionElement(  
   [in] VSSLNSAVEOPTIONS grfSaveOpts,  
   [in] IVsHierarchy *pHier,  
   [in] VSCOOKIE docCookie  
);  

Tüm çözümü kaydetmek için SaveSolutionElement ( grfSaveOpts , null , null ) çağırın. Tek bir projeyi kaydetmek için SaveSolutionElement ( grfSaveOpts , phier ,) öğesini çağırın null . Tek bir belgeyi kaydetmek için SaveSolutionElement ( grfSaveOpts , null ,) çağırın docCookie .

Şunlara uygulanır