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
newFileName
Type: System.StringThe new name.
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
- 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.