Share via


ProjectItem.SaveAs Method

Saves the project item.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Function SaveAs ( _
    NewFileName As String _
) As Boolean
'Usage
Dim instance As ProjectItem 
Dim NewFileName As String 
Dim returnValue As Boolean 

returnValue = instance.SaveAs(NewFileName)
bool SaveAs(
    string NewFileName
)
bool SaveAs(
    [InAttribute] String^ NewFileName
)
function SaveAs(
    NewFileName : String
) : boolean

Parameters

  • NewFileName
    Type: System.String

    Required. 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
A Boolean value indicating true if the project item was saved; otherwise, false.

Remarks

Saves the project item with the specified file name.

.NET Framework Security

See Also

Reference

ProjectItem Interface

ProjectItem Members

EnvDTE Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples