SPLimitedWebPartCollection.Contains Method
Returns True if the specified Web Part is contained in the collection; otherwise returns False.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Function Contains ( _
value As WebPart _
) As Boolean
'Usage
Dim instance As SPLimitedWebPartCollection
Dim value As WebPart
Dim returnValue As Boolean
returnValue = instance.Contains(value)
public bool Contains(
WebPart value
)
Parameters
- value
Type: System.Web.UI.WebControls.WebParts.WebPart
Return Value
Type: System.Boolean
See Also
Reference
SPLimitedWebPartCollection Class