Click or drag to resize
FormComponentExtensionsGetBizFormComponentContext Method
Gets BizFormComponentContext of a form component, if such a context was bound to the component.

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public static BizFormComponentContext GetBizFormComponentContext(
	this FormComponent component
)

Parameters

component
Type: Kentico.Forms.Web.MvcFormComponent
Component to get BizFormComponentContext instance for.

Return Value

Type: BizFormComponentContext
Returns an instance of BizFormComponentContext, or null if such a context was not bound to the component.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FormComponent. 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).
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when component is null.
See Also