ProjectNode.SaveAs Method

Saves the project file to a different name.

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

Syntax

'宣言
Protected Overridable Function SaveAs ( _
    newFileName As String _
) As Integer
'使用
Dim newFileName As String
Dim returnValue As Integer

returnValue = Me.SaveAs(newFileName)
protected virtual int SaveAs(
    string newFileName
)
protected:
virtual int SaveAs(
    String^ newFileName
)
protected function SaveAs(
    newFileName : String
) : int

Parameters

Return Value

Type: System.Int32

S_OK if the rename succeeded, OLE_E_PROMPTSAVECANCELLED if the rename is not possible.

Remarks

If the filename is invalid, and the method is not being run from automation, this method will show a dialog box with the appropriate error message.

Permissions

See Also

Reference

ProjectNode Class

ProjectNode Members

Microsoft.VisualStudio.Package Namespace