Partager via


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.

public:
 Microsoft::VisualStudio::SharePoint::ISharePointProjectItemFile ^ AddFromFileCopy(System::String ^ fileName);
public Microsoft.VisualStudio.SharePoint.ISharePointProjectItemFile AddFromFileCopy (string fileName);
abstract member AddFromFileCopy : string -> Microsoft.VisualStudio.SharePoint.ISharePointProjectItemFile
Public Function AddFromFileCopy (fileName As String) As ISharePointProjectItemFile

Parameters

fileName
String

The file name to copy.

Returns

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

Applies to

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.

public:
 Microsoft::VisualStudio::SharePoint::ISharePointProjectItemFile ^ AddFromFileCopy(System::String ^ fileName, System::String ^ subdirectory);
public Microsoft.VisualStudio.SharePoint.ISharePointProjectItemFile AddFromFileCopy (string fileName, string subdirectory);
abstract member AddFromFileCopy : string * string -> Microsoft.VisualStudio.SharePoint.ISharePointProjectItemFile
Public Function AddFromFileCopy (fileName As String, subdirectory As String) As ISharePointProjectItemFile

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