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.StringRequired. 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
- 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.
See Also
Reference
Other Resources
How to: Compile and Run the Automation Object Model Code Examples