Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.String
The 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.