ISharePointProjectItemFileCollection.AddFromFileCopy Method

Definition

Overloads

AddFromFileCopy(String)

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

AddFromFileCopy(String, String)

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.

AddFromFileCopy(String)

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

C#
public Microsoft.VisualStudio.SharePoint.ISharePointProjectItemFile AddFromFileCopy(string fileName);

Parameters

fileName
String

The file name to copy.

Returns

An instance of the project item file added to the collection.

Applies to

SharePoint Projects 2022 i druge verzije
Proizvod Verzije
SharePoint Projects 2017, 2019, 2022

AddFromFileCopy(String, String)

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.

C#
public Microsoft.VisualStudio.SharePoint.ISharePointProjectItemFile AddFromFileCopy(string fileName, string subdirectory);

Parameters

fileName
String

The file name to copy.

subdirectory
String

The subdirectory in the SharePoint project item folder where the file is added.

Returns

An instance of the project item file added to the project item folder.

Applies to

SharePoint Projects 2022 i druge verzije
Proizvod Verzije
SharePoint Projects 2017, 2019, 2022