New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Extension methods for IHtmlAttributesContainer.

Definition

Namespace:Kendo.Mvc.Extensions

Assembly:Kendo.Mvc.dll

Syntax:

C#
public static class HtmlAttributesContainerExtensions

Inheritance: objectHtmlAttributesContainerExtensions

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Methods

Throws an exception if the specified CSS class is present in the container's HTML attributes.

C#
public static void ThrowIfClassIsPresent(this IHtmlAttributesContainer container, string @class, string message)
Parameters:containerIHtmlAttributesContainer

The HTML attributes container.

classstring

The CSS class to check for.

messagestring

The error message to display if the class is found.