Partager via


Méthode TargetServerCollection.CopyTo

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

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

Syntaxe

'Déclaration
Public Sub CopyTo ( _
    array As TargetServer(), _
    index As Integer _
)
'Utilisation
Dim instance As TargetServerCollection 
Dim array As TargetServer()
Dim index As Integer

instance.CopyTo(array, index)
public void CopyTo(
    TargetServer[] array,
    int index
)
public:
void CopyTo(
    array<TargetServer^>^ array, 
    int index
)
member CopyTo : 
        array:TargetServer[] * 
        index:int -> unit
public function CopyTo(
    array : TargetServer[], 
    index : int
)

Paramètres

  • index
    Type : System.Int32
    An Int32 value that specifies the index position to start the copy.

Notes

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Exemples

Utilisation de collections

Voir aussi

Référence

TargetServerCollection Classe

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