Método IVsRunningDocTableEvents2.OnAfterAttributeChangeEx (UInt32, UInt32, IVsHierarchy, UInt32, String, IVsHierarchy, UInt32, String)

 

Chamado após um alterações de atributo do documento.Esta é uma versão avançada da OnAfterAttributeChange método.

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

Sintaxe

int OnAfterAttributeChangeEx(
    uint docCookie,
    uint grfAttribs,
    IVsHierarchy pHierOld,
    uint itemidOld,
    string pszMkDocumentOld,
    IVsHierarchy pHierNew,
    uint itemidNew,
    string pszMkDocumentNew
)
int OnAfterAttributeChangeEx(
    unsigned int docCookie,
    unsigned int grfAttribs,
    IVsHierarchy^ pHierOld,
    unsigned int itemidOld,
    String^ pszMkDocumentOld,
    IVsHierarchy^ pHierNew,
    unsigned int itemidNew,
    String^ pszMkDocumentNew
)
abstract OnAfterAttributeChangeEx : 
        docCookie:uint32 *
        grfAttribs:uint32 *
        pHierOld:IVsHierarchy *
        itemidOld:uint32 *
        pszMkDocumentOld:string *
        pHierNew:IVsHierarchy *
        itemidNew:uint32 *
        pszMkDocumentNew:string -> int
Function OnAfterAttributeChangeEx (
    docCookie As UInteger,
    grfAttribs As UInteger,
    pHierOld As IVsHierarchy,
    itemidOld As UInteger,
    pszMkDocumentOld As String,
    pHierNew As IVsHierarchy,
    itemidNew As UInteger,
    pszMkDocumentNew As String
) As Integer

Parâmetros

  • docCookie
    [in] Valor abstrato que representa o documento cujos atributos foram alterados.
  • grfAttribs
    [in] Sinalizadores correspondentes aos atributos alterados.Valores são obtidas a partir do __VSRDTATTRIB enumeração.
  • pHierOld
    [in] O IVsHierarchy interface que pertenciam ao documento.
  • pszMkDocumentOld
    [in] Nome do documento antigo.
  • pHierNew
    [in] O atual IVsHierarchy interface que, hoje é proprietário do documento.
  • pszMkDocumentNew
    [in] Nome do novo documento.

Valor de retorno

Type: System.Int32

Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

Esta versão do OnAfterAttributeChange método inclui informações sobre o processo de renomeação, caso tenha ocorrido uma renomeação.

Esse método é chamado quando os atributos do documento foram alteradas.Várias coisas podem alterar os atributos de um documento:

COM assinatura

De vsshell.idl:

HRESULT IVsRunningDocTableEvents2::OnAfterAttributeChangeEx(
   [in] VSCOOKIE docCookie,
   [in] VSRDTATTRIB grfAttribs,
   [in] IVsHierarchy *pHierOld,
   [in] VSITEMID itemidOld,
   [in] LPCOLESTR pszMkDocumentOld,
   [in] IVsHierarchy *pHierNew,
   [in] VSITEMID itemidNew,
   [in] LPCOLESTR pszMkDocumentNew
);

Consulte também

Interface IVsRunningDocTableEvents2
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo