다음을 통해 공유


SPWebPartConnectionCollection.Contains Method

Determines whether the specified SPWebPartConnection is in the SPWebPartConnectionCollection.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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