OAProjectItem.SaveAs Method

Saves the project item.

Namespace:  Microsoft.VisualStudio.Data.Schema.Project.Automation
Assembly:  Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.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
)
public function SaveAs(
    newFileName : String
) : boolean
abstract SaveAs : 
        newFileName:string -> bool 
override SaveAs : 
        newFileName:string -> bool 

Parameters

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

Return Value

Type: System.Boolean

Implements

ProjectItem.SaveAs(String)

Remarks

Implemented by subclasses.

.NET Framework Security

See Also

Reference

OAProjectItem Class

OAProjectItem Members

Microsoft.VisualStudio.Data.Schema.Project.Automation Namespace