共用方式為


WebPartAdder.SelectorCollection.ToArray method

將整個WebPartAdder.SelectorCollection複製到相容的一維陣列,並傳回陣列。

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

Syntax

'宣告
Public Function ToArray As WebPartAdder.Selector()
'用途
Dim instance As WebPartAdder.SelectorCollection
Dim returnValue As WebPartAdder.Selector()

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

傳回值

Type: []
陣列,包含在目前的WebPartAdder.SelectorCollectionWebPartAdder.Selector物件。

備註

WebPartAdder.Selector物件會複製到陣列的列舉值會逐一查看WebPartAdder.SelectorCollection的順序相同。

請參閱

參照

WebPartAdder.SelectorCollection class

WebPartAdder.SelectorCollection members

Microsoft.SharePoint.WebPartPages namespace