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
- 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