Aracılığıyla paylaş


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

 

Program aracılığıyla bir belge, proje veya çözümün tamamı kaydeder.

Ad Alanı:   Microsoft.VisualStudio.Shell.Interop
Derleme:  Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)

Sözdizimi

int SaveSolutionElement(
    uint grfSaveOpts,
    IVsHierarchy pHier,
    uint docCookie
)
int SaveSolutionElement(
    unsigned int grfSaveOpts,
    IVsHierarchy^ pHier,
    unsigned int docCookie
)
abstract SaveSolutionElement : 
        grfSaveOpts:uint32 *
        pHier:IVsHierarchy *
        docCookie:uint32 -> int
Function SaveSolutionElement (
    grfSaveOpts As UInteger,
    pHier As IVsHierarchy,
    docCookie As UInteger
) As Integer

Parametreler

  • docCookie
    Type: System.UInt32

    [in] Kaydedilmiş olan öğe için soyut tanıtıcısı.

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.SaveSolutionElement(UInt32, IVsHierarchy, UInt32)

Notlar

COM imza

Vsshell.idl:

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

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

Ayrıca bkz.

IVsSolution2 Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı

Başa dön