Aracılığıyla paylaş


IVsRunningDocTableEvents3.OnAfterAttributeChangeEx Yöntem (UInt32, UInt32, IVsHierarchy, UInt32, String, IVsHierarchy, UInt32, String)

 

Bir belge niteliği değiştirildikten sonra denir.Bu gelişmiş bir sürümünü, OnAfterAttributeChange yöntemi.

Ad Alanı:   Microsoft.VisualStudio.Shell.Interop
Derleme:  Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)

Sözdizimi

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

Parametreler

  • docCookie
    [in] Niteliklerini değişen belge gösteren soyut değer.
  • grfAttribs
    [in] Değiştirilmiş öznitelikler için karşılık gelen işaretler.Gelen değerleri alınır __VSRDTATTRIB numaralandırma.
  • pHierOld
    [in] IVsHierarchy Daha önce belge sahibi arabirim.
  • pszMkDocumentOld
    [in] Eski belge adı.
  • pHierNew
    [in] Geçerli IVsHierarchy belge sahibi arabirim.
  • pszMkDocumentNew
    [in] Yeni belge adı.

Dönüş Değeri

Type: System.Int32

Yöntem başarılı olursa, verir S_OK.Başarısız olursa, bir hata kodu döndürür.

Uygulanan

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

Notlar

Bu sürümü, OnAfterAttributeChange yöntemi, bir yeniden adlandırma oluştuysa yeniden adlandırma işlemi hakkında bilgi içerir.

Belge öznitelikleri değiştiğinde, bu yöntem çaðrýlýr.Birçok şey, bir belgenin özniteliklerini değiştirebilirsiniz:

com imzası

Vsshell.idl:

HRESULT IVsRunningDocTableEvents3::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
);

Ayrıca bkz.

IVsRunningDocTableEvents3 Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı

Başa dön