WebPartCollection.Contains(WebPart) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
Returns
A Boolean value that indicates whether a particular control is in the collection.
Remarks
The Contains method enables you to check a particular WebPart object and determine whether it is part of a WebPartCollection object.
Applies to
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.