Partager via


ISharePointProjectItemFileCollection.AddFromFile(String) Method

Definition

Adds the specified file to the project item file collection.

public:
 Microsoft::VisualStudio::SharePoint::ISharePointProjectItemFile ^ AddFromFile(System::String ^ fileName);
public Microsoft.VisualStudio.SharePoint.ISharePointProjectItemFile AddFromFile (string fileName);
abstract member AddFromFile : string -> Microsoft.VisualStudio.SharePoint.ISharePointProjectItemFile
Public Function AddFromFile (fileName As String) As ISharePointProjectItemFile

Parameters

fileName
String

The file name to be added. It should be a path to the file inside of the SharePoint project item folder.

Returns

The project item file added to the collection.

Applies to