IVsRunningDocumentTable.SaveDocuments(UInt32, IVsHierarchy, UInt32, UInt32) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Salva os documentos.
public:
int SaveDocuments(System::UInt32 grfSaveOpts, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, System::UInt32 itemid, System::UInt32 docCookie);
public:
int SaveDocuments(unsigned int grfSaveOpts, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, unsigned int itemid, unsigned int docCookie);
int SaveDocuments(unsigned int grfSaveOpts, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHier, unsigned int itemid, unsigned int docCookie);
public int SaveDocuments (uint grfSaveOpts, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHier, uint itemid, uint docCookie);
abstract member SaveDocuments : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * uint32 -> int
Public Function SaveDocuments (grfSaveOpts As UInteger, pHier As IVsHierarchy, itemid As UInteger, docCookie As UInteger) As Integer
Parâmetros
- grfSaveOpts
- UInt32
no Salve as opções cujos valores são extraídos da __VSRDTSAVEOPTIONS enumeração.
- pHier
- IVsHierarchy
no A IVsHierarchy interface que possui o documento.
- itemid
- UInt32
no Identificador de item dos documentos salvos. Esse é um identificador exclusivo ou pode ser um dos seguintes valores: VSITEMID_NIL , VSITEMID_ROOT ou VSITEMID_SELECTION .
- docCookie
- UInt32
no Valor abstrato que representa os documentos salvos.
Retornos
Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.
Comentários
Assinatura COM
De VSShell. idl:
HRESULT IVsRunningDocumentTable::SaveDocuments(
[in] VSRDTSAVEOPTIONS grfSaveOpts,
[in] IVsHierarchy *pHier,
[in] VSITEMID itemid,
[in] VSCOOKIE docCookie
);
O docCookie parâmetro é o mesmo valor que é retornado dos FindAndLockDocument RegisterAndLockDocument métodos ou.