DesignerDocDataService.IVsRunningDocTableEvents2.OnAfterAttributeChangeEx Method
Called after an attribute has changed on a document in the Running Document Table.
Namespace: Microsoft.VisualStudio.Shell.Design.Serialization
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Dichiarazione
Private Function OnAfterAttributeChangeEx ( _
docCookie As UInteger, _
attribs As UInteger, _
pHierOld As IVsHierarchy, _
itemidOld As UInteger, _
pszMkDocumentOld As String, _
pHierNew As IVsHierarchy, _
itemidNew As UInteger, _
pszMkDocumentNew As String _
) As Integer Implements IVsRunningDocTableEvents2.OnAfterAttributeChangeEx
'Utilizzo
Dim instance As DesignerDocDataService
Dim docCookie As UInteger
Dim attribs As UInteger
Dim pHierOld As IVsHierarchy
Dim itemidOld As UInteger
Dim pszMkDocumentOld As String
Dim pHierNew As IVsHierarchy
Dim itemidNew As UInteger
Dim pszMkDocumentNew As String
Dim returnValue As Integer
returnValue = CType(instance, IVsRunningDocTableEvents2).OnAfterAttributeChangeEx(docCookie, _
attribs, pHierOld, itemidOld, pszMkDocumentOld, _
pHierNew, itemidNew, pszMkDocumentNew)
int IVsRunningDocTableEvents2.OnAfterAttributeChangeEx(
uint docCookie,
uint attribs,
IVsHierarchy pHierOld,
uint itemidOld,
string pszMkDocumentOld,
IVsHierarchy pHierNew,
uint itemidNew,
string pszMkDocumentNew
)
private:
virtual int OnAfterAttributeChangeEx(
unsigned int docCookie,
unsigned int attribs,
IVsHierarchy^ pHierOld,
unsigned int itemidOld,
String^ pszMkDocumentOld,
IVsHierarchy^ pHierNew,
unsigned int itemidNew,
String^ pszMkDocumentNew
) sealed = IVsRunningDocTableEvents2::OnAfterAttributeChangeEx
private abstract OnAfterAttributeChangeEx :
docCookie:uint32 *
attribs:uint32 *
pHierOld:IVsHierarchy *
itemidOld:uint32 *
pszMkDocumentOld:string *
pHierNew:IVsHierarchy *
itemidNew:uint32 *
pszMkDocumentNew:string -> int
private override OnAfterAttributeChangeEx :
docCookie:uint32 *
attribs:uint32 *
pHierOld:IVsHierarchy *
itemidOld:uint32 *
pszMkDocumentOld:string *
pHierNew:IVsHierarchy *
itemidNew:uint32 *
pszMkDocumentNew:string -> int
JScript does not support explicit interface implementations.
Parameters
- docCookie
Type: System.UInt32
The identifier of the document in the Running Document Table.
- attribs
Type: System.UInt32
__VSRDTATTRIB values corresponding to the attributes that have changed.
- pHierOld
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
The IVsHierarchy interface of the node that previously owned the document.
- itemidOld
Type: System.UInt32
The previous item ID.
- pszMkDocumentOld
Type: System.String
The previous name of the document.
- pHierNew
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
The IVsHierarchy interface of the node that now owns the document.
- itemidNew
Type: System.UInt32
The new item ID.
- pszMkDocumentNew
Type: System.String
The new name of the document.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
Remarks
This method saves any changes that were made to the cached item ID or hierarchy.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.