SPWebPartConnectionCollection.Contains 方法
确定指定的SPWebPartConnection是否SPWebPartConnectionCollection。
命名空间: Microsoft.SharePoint.WebPartPages
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function Contains ( _
value As SPWebPartConnection _
) As Boolean
用法
Dim instance As SPWebPartConnectionCollection
Dim value As SPWebPartConnection
Dim returnValue As Boolean
returnValue = instance.Contains(value)
public bool Contains(
SPWebPartConnection value
)
参数
value
类型:Microsoft.SharePoint.WebPartPages.SPWebPartConnectionSPWebPartConnectionSPWebPartConnectionCollection中查找。
返回值
类型:System.Boolean
true SPWebPartConnection 位于SPWebPartConnectionCollection; 如果否则为false。
备注
使用此方法来确定是否SPWebPartConnectionCollection集合中包含特定SPWebPartConnection 。此方法通常用于测试之前执行的任务,如添加或删除集合中的连接的连接。
另请参阅
引用
SPWebPartConnectionCollection 类