Export (0) Print
Expand All

SubMenuStyleCollection.Contains Method

Determines whether a SubMenuStyleCollection collection contains a specific SubMenuStyle instance.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public bool Contains(
	SubMenuStyle style
)

Parameters

style
Type: System.Web.UI.WebControls.SubMenuStyle

The SubMenuStyle instance to locate in the SubMenuStyleCollection collection.

Return Value

Type: System.Boolean
true 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft