次の方法で共有


IVsRunningDocumentTable.SaveDocuments Method

Determines the save options used to save documents.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣言
Function SaveDocuments ( _
    grfSaveOpts As UInteger, _
    pHier As IVsHierarchy, _
    itemid As UInteger, _
    docCookie As UInteger _
) As Integer
'使用
Dim instance As IVsRunningDocumentTable
Dim grfSaveOpts As UInteger
Dim pHier As IVsHierarchy
Dim itemid As UInteger
Dim docCookie As UInteger
Dim returnValue As Integer

returnValue = instance.SaveDocuments(grfSaveOpts, _
    pHier, itemid, docCookie)
int SaveDocuments(
    uint grfSaveOpts,
    IVsHierarchy pHier,
    uint itemid,
    uint docCookie
)
int SaveDocuments(
    [InAttribute] unsigned int grfSaveOpts, 
    [InAttribute] IVsHierarchy^ pHier, 
    [InAttribute] unsigned int itemid, 
    [InAttribute] unsigned int docCookie
)
abstract SaveDocuments : 
        grfSaveOpts:uint32 * 
        pHier:IVsHierarchy * 
        itemid:uint32 * 
        docCookie:uint32 -> int 
function SaveDocuments(
    grfSaveOpts : uint, 
    pHier : IVsHierarchy, 
    itemid : uint, 
    docCookie : uint
) : int

Parameters

  • docCookie
    Type: System.UInt32
    [in] Abstract value representing the saved documents.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

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

The docCookie parameter is same value that is returned from the FindAndLockDocument or RegisterAndLockDocument methods.

.NET Framework Security

See Also

Reference

IVsRunningDocumentTable Interface

IVsRunningDocumentTable Members

Microsoft.VisualStudio.Shell.Interop Namespace