Share via


WebPartAdder.SelectorCollection.ToArray method

Copies the entire WebPartAdder.SelectorCollection to a compatible one-dimensional array and returns the array.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function ToArray As WebPartAdder.Selector()
'Usage
Dim instance As WebPartAdder.SelectorCollection
Dim returnValue As WebPartAdder.Selector()

returnValue = instance.ToArray()
public WebPartAdder.Selector[] ToArray()

Return value

Type: []
An array that contains the WebPartAdder.Selector objects within the current WebPartAdder.SelectorCollection.

Remarks

The WebPartAdder.Selector objects are copied to the array in the same order in which the enumerator iterates through the WebPartAdder.SelectorCollection.

See also

Reference

WebPartAdder.SelectorCollection class

WebPartAdder.SelectorCollection members

Microsoft.SharePoint.WebPartPages namespace