DataPagerFieldCollection.Contains(DataPagerField) 方法

定义

确定 DataPagerFieldCollection 集合是否包含指定的 DataPagerField 对象。Determines whether the DataPagerFieldCollection collection contains the specified DataPagerField object.

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

参数

field
DataPagerField

要在 DataControlFieldCollection 集合中定位的对象。The object to locate in the DataControlFieldCollection collection.

返回

Boolean

如果 DataPagerFieldCollection 集合包含指定的字段,则为 true;否则为 falsetrue if the DataPagerFieldCollection collection contains the specified field; otherwise, false.

适用于

另请参阅