WebPartAdder.SelectorCollection.SetItem Method
Replaces the WebPartAdder.Selector object at the specified index.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Protected Overrides Sub SetItem ( _
index As Integer, _
item As WebPartAdder.Selector _
)
'Usage
Dim index As Integer
Dim item As WebPartAdder.Selector
Me.SetItem(index, item)
protected override void SetItem(
int index,
WebPartAdder.Selector item
)
Parameters
index
Type: System.Int32The zero-based index of the WebPartAdder.Selector object to replace.
item
Type: Microsoft.SharePoint.WebPartPages.WebPartAdder.SelectorThe new selector.
Remarks
This override ensures that item is valid, and then calls the corresponding method of the base class to replace the WebPartAdder.Selector object at the specified index.
See Also
Reference
WebPartAdder.SelectorCollection Class