ProjectItem.SaveAs(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Saves the project item.
public:
bool SaveAs(System::String ^ NewFileName);
public:
bool SaveAs(Platform::String ^ NewFileName);
bool SaveAs(std::wstring const & NewFileName);
[System.Runtime.InteropServices.DispId(12)]
public bool SaveAs (string NewFileName);
[<System.Runtime.InteropServices.DispId(12)>]
abstract member SaveAs : string -> bool
Public Function SaveAs (NewFileName As String) As Boolean
Parameters
- NewFileName
- String
Required. The file name with which to save the solution, project, or project item. If the file exists, it is overwritten.
Returns
A Boolean value indicating true
if the project item was saved; otherwise, false
.
- Attributes
Remarks
Saves the project item with the specified file name.