Share via


SaveAs Method

Saves the project item.

Namespace:  Microsoft.VisualStudio.Data.Tools.Package.Internal
Assembly:  Microsoft.VisualStudio.Data.Tools.Package (in Microsoft.VisualStudio.Data.Tools.Package.dll)

Syntax

'Declaration
Public Overridable Function SaveAs ( _
    newFileName As String _
) As Boolean
'Usage
Dim instance As OAProjectItem
Dim newFileName As String
Dim returnValue As Boolean

returnValue = instance.SaveAs(newFileName)
public virtual bool SaveAs(
    string newFileName
)
public:
virtual bool SaveAs(
    String^ newFileName
)
abstract SaveAs : 
        newFileName:string -> bool 
override SaveAs : 
        newFileName:string -> bool 
public function SaveAs(
    newFileName : String
) : boolean

Parameters

  • newFileName
    Type: System..::..String
    The file name with which to save the solution, project, or project item. If the file exists, it is overwritten.

Return Value

Type: System..::..Boolean
true if save was successful

Implements

ProjectItemSaveAs(String)

Remarks

This method is implemented on subclasses.

See Also

Reference

OAProjectItem Class

Microsoft.VisualStudio.Data.Tools.Package.Internal Namespace