HierarchyNode.AfterSaveItemAs Method

Saves an item after the SaveAs dialog box has been processed.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Protected Overridable Function AfterSaveItemAs ( _
    docData As IntPtr, _
    newName As String _
) As Integer
'使用
Dim docData As IntPtr
Dim newName As String
Dim returnValue As Integer

returnValue = Me.AfterSaveItemAs(docData, _
    newName)
protected virtual int AfterSaveItemAs(
    IntPtr docData,
    string newName
)
protected:
virtual int AfterSaveItemAs(
    IntPtr docData, 
    String^ newName
)
protected function AfterSaveItemAs(
    docData : IntPtr, 
    newName : String
) : int

Parameters

  • docData
    Type: System.IntPtr

    Pointer to the running document table.

  • newName
    Type: System.String

    The name to which the item should be saved.

Return Value

Type: System.Int32

Implementations should return S_OK if the save was successful; otherwise, they should return an error code.

Remarks

An example of an implementation is [M:Microsoft.VisualStudio.Package.FileNode.After(System.IntPtr docData, string newFilePath)].

Permissions

See Also

Reference

HierarchyNode Class

HierarchyNode Members

Microsoft.VisualStudio.Package Namespace