会在容器中创建项目。 如果项目已经存在具有相同类型,重写它们。 如果项目已经存在不同的类型,则引发异常。
命名空间: Microsoft.TeamFoundation.Framework.Server
程序集: Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)
语法
声明
Public Function CreateItems ( _
requestContext As TeamFoundationRequestContext, _
containerId As Long, _
items As IList(Of FileContainerItem) _
) As List(Of FileContainerItem)
public List<FileContainerItem> CreateItems(
TeamFoundationRequestContext requestContext,
long containerId,
IList<FileContainerItem> items
)
参数
- requestContext
类型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
请求上下文。
- containerId
类型:System.Int64
容器 ID.
- items
类型:System.Collections.Generic.IList<FileContainerItem>
要创建的项目。
返回值
类型:System.Collections.Generic.List<FileContainerItem>
创建的项目。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。