Collection<T>.CopyToArray Method
Creates an array that contains all the items from the specified collection.
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
Public Shared Function CopyToArray ( _
collection As IMetadataCollection(Of T) _
) As T()
'Usage
Dim collection As IMetadataCollection(Of T)
Dim returnValue As T()
returnValue = Collection.CopyToArray(collection)
public static T[] CopyToArray(
IMetadataCollection<T> collection
)
public:
static array<T>^ CopyToArray(
IMetadataCollection<T>^ collection
)
static member CopyToArray :
collection:IMetadataCollection<'T> -> 'T[]
public static function CopyToArray(
collection : IMetadataCollection<T>
) : T[]
Parameters
- collection
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataCollection<T>
The IMetadataCollection<T> object that contains the items to copy.
Return Value
Type: array<T[]
An array that contains items from the collection.