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.IntPtrPointer to the running document table.
newName
Type: System.StringThe 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
- 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.