Click or drag to resize
FormComponentDefinitionEnumerableExtensionsFilter Method
Applies form component filters on a collection of formComponents and returns a filtered collection.

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public static IEnumerable<FormComponentDefinition> Filter(
	this IEnumerable<FormComponentDefinition> formComponents,
	IEnumerable<IFormComponentFilter> formComponentFilters,
	FormComponentFilterContext context
)

Parameters

formComponents
Type: System.Collections.GenericIEnumerableFormComponentDefinition
formComponentFilters
Type: System.Collections.GenericIEnumerableIFormComponentFilter
context
Type: Kentico.Forms.Web.Mvc.FormComponentsFormComponentFilterContext

Return Value

Type: IEnumerableFormComponentDefinition
Filtered form component collection.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableFormComponentDefinition. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also