MenuItemCollection.CopyTo 方法

将整个集合复制到指定索引处开始的一维数组。

命名空间:  Microsoft.SharePoint.WebPartPages
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Sub CopyTo ( _
    array As MenuItem(), _
    index As Integer _
)
用法
Dim instance As MenuItemCollection
Dim array As MenuItem()
Dim index As Integer

instance.CopyTo(array, index)
public void CopyTo(
    MenuItem[] array,
    int index
)

参数

  • array
    类型:[]

    要添加到菜单的 MenuItem 对象的数组。

  • index
    类型:System.Int32

    要添加的 MenuItem 对象的数组的当前集合中的位置。

另请参阅

引用

MenuItemCollection 类

MenuItemCollection 成员

Microsoft.SharePoint.WebPartPages 命名空间