Udostępnij za pośrednictwem


Metoda IVsRunningDocTableEvents2.OnAfterAttributeChangeEx — (UInt32, UInt32, IVsHierarchy, UInt32, String, IVsHierarchy, UInt32, String)

 

Wywołana po zmiany atrybutów dokumentu.To jest wersja zaawansowane OnAfterAttributeChange metody.

Przestrzeń nazw:   Microsoft.VisualStudio.Shell.Interop
Zestaw:  Microsoft.VisualStudio.Shell.Interop (w Microsoft.VisualStudio.Shell.Interop.dll)

Składnia

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

Parametry

  • docCookie
    [w] Abstrakcyjna wartość reprezentująca dokument, którego atrybuty zostały zmienione.
  • grfAttribs
    [w] Flagi odpowiadające zmiany atrybutów.Wartości są pobierane z __VSRDTATTRIB wyliczania.
  • pHierOld
    [w] IVsHierarchy Interfejsu, który wcześniej właścicielem dokumentu.
  • pszMkDocumentOld
    [w] Nazwa starego dokumentu.
  • pHierNew
    [w] Bieżący IVsHierarchy interfejsu obecnie właścicielem dokumentu.
  • pszMkDocumentNew
    [w] Nazwa nowego dokumentu.

Wartość zwracana

Type: System.Int32

Jeśli metoda się powiedzie, zwraca S_OK.Jeśli nie powiedzie się, zwraca kod błędu.

Uwagi

Ta wersja OnAfterAttributeChange metoda zawiera informacje na temat zmiany nazwy procesu, jeśli wystąpi zmiana nazwy.

Metoda ta jest wywoływana, gdy atrybuty dokumentu uległy zmianie.Kilka rzeczy, można zmienić atrybuty dokumentu:

Podpis COM

Z 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
);

Zobacz też

Interfejs IVsRunningDocTableEvents2
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop

Powrót do początku