WebPartCollection.Contains(WebPart) 方法

定义

返回一个值,该值指示集合中是否存在特定控件。Returns a value indicating whether a particular control exists in the collection.

public:
 bool Contains(System::Web::UI::WebControls::WebParts::WebPart ^ value);
public bool Contains (System.Web.UI.WebControls.WebParts.WebPart value);
member this.Contains : System.Web.UI.WebControls.WebParts.WebPart -> bool
Public Function Contains (value As WebPart) As Boolean

参数

value
WebPart

要对其进行检查以确定是否位于集合中的 WebPartA WebPart that is checked to determine whether it is in the collection.

返回

一个布尔值,该值指示集合中是否存在特定控件。A Boolean value that indicates whether a particular control is in the collection.

注解

使用Contains方法, 可以检查特定WebPart对象并确定WebPartCollection该对象是否为对象的一部分。The Contains method enables you to check a particular WebPart object and determine whether it is part of a WebPartCollection object.

适用于

另请参阅