WebPartAdder.SelectorCollection.Remove Method (String)
Removes a WebPartAdder.Selector object from the WebPartAdder.SelectorCollection.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Function Remove ( _
selectorString As String _
) As Boolean
'Usage
Dim instance As WebPartAdder.SelectorCollection
Dim selectorString As String
Dim returnValue As Boolean
returnValue = instance.Remove(selectorString)
public bool Remove(
string selectorString
)
Parameters
selectorString
Type: System.StringThe string that represents the WebPartAdder.Selector object to be removed from the WebPartAdder.SelectorCollection.
Return Value
Type: System.Boolean
true if item is successfully removed; otherwise, false. This method also returns false if item was not found in the original collection.
Remarks
This method converts the string representation to a WebPartAdder.Selector object, and then searches the WebPartAdder.SelectorCollection for the WebPartAdder.Selector object. If the WebPartAdder.Selector object is found, it is removed.
See Also
Reference
WebPartAdder.SelectorCollection Class