Partager via


Méthode AlertCollection.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 Alert(), _
    index As Integer _
)
'Utilisation
Dim instance As AlertCollection 
Dim array As Alert()
Dim index As Integer

instance.CopyTo(array, index)
public void CopyTo(
    Alert[] array,
    int index
)
public:
void CopyTo(
    array<Alert^>^ array, 
    int index
)
member CopyTo : 
        array:Alert[] * 
        index:int -> unit
public function CopyTo(
    array : Alert[], 
    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

AlertCollection Classe

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