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
bool SaveAs(
    string NewFileName
)
bool SaveAs(
    [InAttribute] String^ NewFileName
)
abstract SaveAs : 
        NewFileName:string -> bool
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

EnvDTE Namespace

Other Resources

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