Share via


SmartTagCollection.CopyTo 方法

SmartTagCollection 中的智慧標籤複製到一維智慧標籤陣列,從指定的索引開始複製。

命名空間:  Microsoft.Office.Tools
組件:  Microsoft.Office.Tools.Common (在 Microsoft.Office.Tools.Common.dll 中)

語法

'宣告
Sub CopyTo ( _
    array As SmartTagBase(), _
    index As Integer _
)
void CopyTo(
    SmartTagBase[] array,
    int index
)

參數

  • index
    型別:System.Int32
    要開始複製的陣列索引。

例外狀況

例外狀況 條件
ArgumentException

目的陣列是多維的,或 SmartTagCollection 中元素的數目大於可用空間,此空間位於 index 參數所指定之目標陣列索引和目標陣列結尾之間。

ArgumentNullException

array 參數為 nullNull 參照 (即 Visual Basic 中的 Nothing)。

ArgumentOutOfRangeException

index 參數小於目標陣列的最小索引。

.NET Framework 安全性

請參閱

參考

SmartTagCollection 介面

Microsoft.Office.Tools 命名空間