ProjectItem.SaveAs(String) 方法

定义

保存项目项。

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

参数

NewFileName
String

必需。 保存解决方案、项目或项目项所用的文件名。 如果该文件存在,它会被覆盖。

返回

Boolean

指示 true 是否保存项目项的布尔值; 否则为 false

属性

注解

用指定的文件名保存项目项。

适用于