Share via


ISharePointProjectItemFileCollection.AddFromFileCopy Method (String)

Adds a new file as a copy of the specified file. The file is added to the SharePoint project item folder.

Namespace:  Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

Syntax

'Declaration
Function AddFromFileCopy ( _
    fileName As String _
) As ISharePointProjectItemFile
ISharePointProjectItemFile AddFromFileCopy(
    string fileName
)

Parameters

Return Value

Type: Microsoft.VisualStudio.SharePoint.ISharePointProjectItemFile
An instance of the project item file added to the collection.

.NET Framework Security

See Also

Reference

ISharePointProjectItemFileCollection Interface

AddFromFileCopy Overload

Microsoft.VisualStudio.SharePoint Namespace