Aracılığıyla paylaş


IVsRunningDocumentTable.SaveDocuments Yöntem (UInt32, IVsHierarchy, UInt32, UInt32)

 

Belgeleri kaydeder.

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

Sözdizimi

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

Parametreler

  • docCookie
    Type: System.UInt32

    [in] Kaydedilmiş belgeleri temsil eden Özet değer.

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.

Notlar

COM imza

Vsshell.idl:

HRESULT IVsRunningDocumentTable::SaveDocuments(
   [in] VSRDTSAVEOPTIONS  grfSaveOpts,
   [in] IVsHierarchy     *pHier,
   [in] VSITEMID          itemid,
   [in] VSCOOKIE          docCookie
);

docCookie Parametresidir öğesinden döndürülen aynı değeri FindAndLockDocument veya RegisterAndLockDocument yöntemleri.

Ayrıca bkz.

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

Başa dön