Aracılığıyla paylaş


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

 

Sonra belge öznitelik değişikliklerini 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ştirilen belgeyi 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 arabirimi, şimdi, belge sahibi.
  • 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.

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

Ayrıca bkz.

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

Başa dön