ISharePointProjectItemFileCollection.AddFromFile Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds the specified file to the project item file collection.
Namespace: Microsoft.VisualStudio.SharePoint
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Function AddFromFile ( _
fileName As String _
) As ISharePointProjectItemFile
ISharePointProjectItemFile AddFromFile(
string fileName
)
Parameters
fileName
Type: System.StringThe file name to be added. It should be a path to the file inside of the SharePoint project item folder.
Return Value
Type: Microsoft.VisualStudio.SharePoint.ISharePointProjectItemFile
The project item file added to the collection.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.