NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SQLErrors.CopyTo

[To be supplied.]

[Visual Basic]
Overridable Public Sub CopyTo( _
   ByVal array As Array, _
   ByVal index As Integer _
)
[C#]
public virtual void CopyTo(
   Array array,
   int index
);
[C++]
public: virtual void CopyTo(
   Array* array,
   int index
);
[JScript]
public function CopyTo(
   array : Array,
   index : int
);

Parameters

array
[To be supplied.]
index
[To be supplied.]

Example [Visual Basic]

The following example displays an array of all SQLError.

[Visual Basic]

Public Sub DumpAllErrors(sqlErrCollect As SQLErrors)
   Dim myTitle As String
   Dim myMsgBox As MessageBox
   Dim myErrors() As SQLError
   myTitle  = "Dump of all SQL Server Errors"
   myErrors = sqlErrCollect.All
   myMsgBox.Show myErrors, myTitle
End Sub

See Also

SQLErrors Class | SQLErrors Members | System.Data.SQL Namespace