次の方法で共有


ProjectItem.SaveAs(String) Method

Definition

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.

Applies to