Partager via


Méthode RegisteredServerCollection.CopyTo

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

Espace de noms :  Microsoft.SqlServer.Management.Smo.RegisteredServers
Assembly :  Microsoft.SqlServer.SmoExtended (en Microsoft.SqlServer.SmoExtended.dll)

Syntaxe

'Déclaration
Public Sub CopyTo ( _
    array As Array, _
    index As Integer _
)
'Utilisation
Dim instance As RegisteredServerCollection 
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
)

Paramètres

  • index
    Type : System.Int32
    An Int32 value that specifies the index value in the collection to start copying.

Implémente

ICollection.CopyTo(Array, Int32)

Exemples

Utilisation de collections

Voir aussi

Référence

RegisteredServerCollection Classe

Espace de noms Microsoft.SqlServer.Management.Smo.RegisteredServers

Autres ressources

Utilisation de collections