SPWebPartConnectionCollection.Contains method

Determines whether the specified SPWebPartConnection is in the SPWebPartConnectionCollection.

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

Syntax

'Declaration
Public Function Contains ( _
    value As SPWebPartConnection _
) As Boolean
'Usage
Dim instance As SPWebPartConnectionCollection
Dim value As SPWebPartConnection
Dim returnValue As Boolean

returnValue = instance.Contains(value)
public bool Contains(
    SPWebPartConnection value
)

Parameters

Return value

Type: System.Boolean
true if the SPWebPartConnection is found in the SPWebPartConnectionCollection; otherwise, false.

Remarks

Use this method to determine whether a particular SPWebPartConnection is contained in the SPWebPartConnectionCollection collection. This method is frequently used to test for a connection before performing a task, such as adding or removing a connection from a collection.

See also

Reference

SPWebPartConnectionCollection class

SPWebPartConnectionCollection members

Microsoft.SharePoint.WebPartPages namespace