共用方式為


SPFarmManagedAccountCollection.CopyTo method

複製到陣列中指定的起始索引處開始的陣列集合中的項目。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Sub CopyTo ( _
    array As SPManagedAccount(), _
    arrayIndex As Integer _
)
'用途
Dim instance As SPFarmManagedAccountCollection
Dim array As SPManagedAccount()
Dim arrayIndex As Integer

instance.CopyTo(array, arrayIndex)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public void CopyTo(
    SPManagedAccount[] array,
    int arrayIndex
)

參數

  • array
    Type: []

    要複製之集合的陣列。

  • arrayIndex
    Type: System.Int32

    啟動陣列中的索引來接收第一頁複製項目。

Implements

ICollection<T>.CopyTo([], Int32)

Exceptions

Exception Condition
OverflowException

集合的大小大於arrayIndex陣列結尾的陣列大小。

備註

arrayIndex無法參照陣列界限之外的項目。

請參閱

參照

SPFarmManagedAccountCollection class

SPFarmManagedAccountCollection members

Microsoft.SharePoint.Administration namespace