ISharePointProjectItemFileCollection.AddFromFileCopy 方法 (String, String)

向指定子目录添加指定文件的副本作为项目项文件。 文件即添加到 SharePoint 项目项文件夹。

命名空间:  Microsoft.VisualStudio.SharePoint
程序集:  Microsoft.VisualStudio.SharePoint(在 Microsoft.VisualStudio.SharePoint.dll 中)

语法

声明
Function AddFromFileCopy ( _
    fileName As String, _
    subdirectory As String _
) As ISharePointProjectItemFile
ISharePointProjectItemFile AddFromFileCopy(
    string fileName,
    string subdirectory
)

参数

  • subdirectory
    类型:System.String
    要在其中添加文件的 SharePoint 项目项文件夹中的子目录。

返回值

类型:Microsoft.VisualStudio.SharePoint.ISharePointProjectItemFile
已添加到项目项文件夹中的项目项文件的实例。

.NET Framework 安全性

请参见

参考

ISharePointProjectItemFileCollection 接口

AddFromFileCopy 重载

Microsoft.VisualStudio.SharePoint 命名空间