共用方式為


CopyTo 方法

Copies the collection objects to a one-dimensional array beginning at the index value specified.

命名空間:  Microsoft.SqlServer.Management.Smo.RegisteredServers
組件:  Microsoft.SqlServer.SmoExtended (在 Microsoft.SqlServer.SmoExtended.dll 中)

語法

'宣告
Public Sub CopyTo ( _
    array As Array, _
    index As Integer _
)
'用途
Dim instance As ServerGroupCollection
Dim array As Array
Dim index As Integer

instance.CopyTo(array, index)
public void CopyTo(
    Array array,
    int index
)
public:
virtual void CopyTo(
    Array^ array, 
    int index
) sealed
abstract CopyTo : 
        array:Array * 
        index:int -> unit 
override CopyTo : 
        array:Array * 
        index:int -> unit 
public final function CopyTo(
    array : Array, 
    index : int
)

參數

  • index
    型別:System. . :: . .Int32
    An [T:System.] Int32 value that specifies the index position to start the copy.

實作

ICollection. . :: . .CopyTo(Array, Int32)

範例

使用集合