LoginCollection.CopyTo Method (Login , Int32)

 

Applies To: SQL Server 2016 Preview

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

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

public void CopyTo(
    Login[] array,
    int index
)
public:
void CopyTo(
    array<Login^>^ array,
    int index
)
member CopyTo : 
        array:Login[] *
        index:int -> unit
Public Sub CopyTo (
    array As Login(),
    index As Integer
)

Parameters

  • index
    Type: System.Int32

    An Int32 value that specifies the position in the collection from which to start the copy.

Examples

Legacy Code Example

Using Collections

See Also

LoginCollection Class
Microsoft.SqlServer.Management.Smo Namespace

Return to top