共用方式為


IVstaHelper.AddFileToProject(String, String) Method

Definition

Adds a file to the project.

public:
 bool AddFileToProject(System::String ^ fileName, System::String ^ contents);
public bool AddFileToProject (string fileName, string contents);
abstract member AddFileToProject : string * string -> bool
Public Function AddFileToProject (fileName As String, contents As String) As Boolean

Parameters

fileName
String

The name of the file to add.

contents
String

The contents of the file.

Returns

true if the method succeeded; otherwise, false.

Applies to