ISharePointProjectItemFileCollection.AddFromFile(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.
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.