IVsRunningDocumentTable4.GetRelatedSaveTreeItems(UInt32, UInt32, UInt32, VSSAVETREEITEM[]) Método

Definição

Recupera os itens de árvore de salvamento relacionados para um documento.

public:
 System::UInt32 GetRelatedSaveTreeItems(System::UInt32 cookie, System::UInt32 grfSave, System::UInt32 celt, cli::array <Microsoft::VisualStudio::Shell::Interop::VSSAVETREEITEM> ^ rgSaveTreeItems);
unsigned int GetRelatedSaveTreeItems(unsigned int cookie, unsigned int grfSave, unsigned int celt, std::Array <Microsoft::VisualStudio::Shell::Interop::VSSAVETREEITEM> const & rgSaveTreeItems);
public uint GetRelatedSaveTreeItems (uint cookie, uint grfSave, uint celt, Microsoft.VisualStudio.Shell.Interop.VSSAVETREEITEM[] rgSaveTreeItems);
abstract member GetRelatedSaveTreeItems : uint32 * uint32 * uint32 * Microsoft.VisualStudio.Shell.Interop.VSSAVETREEITEM[] -> uint32
Public Function GetRelatedSaveTreeItems (cookie As UInteger, grfSave As UInteger, celt As UInteger, rgSaveTreeItems As VSSAVETREEITEM()) As UInteger

Parâmetros

cookie
UInt32

no Documento do qual obter os itens de árvore de salvamento relacionados.

grfSave
UInt32

no Salve as opções para o documento na tabela de documentos em execução (RDT).

celt
UInt32

no Dimensione os itens de árvore de salvamento relacionados.

rgSaveTreeItems
VSSAVETREEITEM[]

[out, size_is (celt), length_is (* pcActual)] Matriz que contém as opções de salvamento para o item de exibição de árvore.

Retornos

UInt32

O número real de itens de árvore de salvamento relacionados que foram recuperados.

Implementações

Comentários

Se celt for zero e o valor de retorno não for nulo, o número de VSSAVETREEITEM será retornado no valor de retorno. Se celt não for zero, rgSaveTreeItems não deverá ser nulo.

O exemplo a seguir mostra uma maneira comum de usar esse método (omitindo verificações de erro para facilitar a leitura):

hr = pIVsRunningDocumentTable3->GetRelatedSaveTreeItems(cookie, grfSave, 0, NULL, &cExpected);  
prgSaveTreeItems = ::CoTaskMemAlloc(cExpected * sizeof(VSSAVETREEITEM));  
hr = pIVsRunningDocumentTable3->GetRelatedSaveTreeItems(cookie, grfSave, cExpected, prgSaveTreeItems, &cActual);  

Aplica-se a