ISharePointProjectItemFileCollection.AddFromFileCopy Method (String, String)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds a copy of the specified file to the specified subdirectory as a project item 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, _
subdirectory As String _
) As ISharePointProjectItemFile
ISharePointProjectItemFile AddFromFileCopy(
string fileName,
string subdirectory
)
Parameters
fileName
Type: System.StringThe file name to copy.
subdirectory
Type: System.StringThe subdirectory in the SharePoint project item folder where the file is added.
Return Value
Type: Microsoft.VisualStudio.SharePoint.ISharePointProjectItemFile
An instance of the project item file added to the project item folder.
.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.