Edit

Share via


WebPartDisplayModeCollection.Contains(WebPartDisplayMode) Method

Definition

Returns a value indicating whether a particular WebPartDisplayMode object exists in the collection.

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

Parameters

value
WebPartDisplayMode

A WebPartDisplayMode being checked for its existence in a collection.

Returns

A Boolean value that indicates whether value exists in the collection.

Remarks

The Contains method enables you to check a particular WebPartDisplayMode object and determine whether it is in a WebPartDisplayModeCollection object.

Applies to

See also