Share via


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.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

See Also

Reference

ISharePointProjectItemFileCollection Interface

Microsoft.VisualStudio.SharePoint Namespace