SubMenuStyleCollection::Contains Method (SubMenuStyle^)
.NET Framework (current version)
Determines whether a SubMenuStyleCollection collection contains a specific SubMenuStyle instance.
Assembly: System.Web (in System.Web.dll)
Parameters
- style
-
Type:
System.Web.UI.WebControls::SubMenuStyle^
The SubMenuStyle instance to locate in the SubMenuStyleCollection collection.
Return Value
Type: System::Booleantrue if the SubMenuStyle instance is found in the SubMenuStyleCollection collection; otherwise, false. If null is passed as the style parameter, false is returned.
The OnValidate method is called to validate the style parameter before the SubMenuStyleCollection collection is checked.
.NET Framework
Available since 2.0
Available since 2.0
Show: