ControlAttribute.GetValueProvider Method (ModelBindingExecutionContext)

.NET Framework (current version)
 

Gets the value provider.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

Public Overrides Function GetValueProvider (
	modelBindingExecutionContext As ModelBindingExecutionContext
) As IValueProvider

Parameters

modelBindingExecutionContext
Type: System.Web.ModelBinding.ModelBindingExecutionContext

The execution context.

Return Value

Type: System.Web.ModelBinding.IValueProvider

The value provider.

Exception Condition
ArgumentNullException

The modelBindingExecutionContext parameter is null.

This method creates and returns a new instance of the ControlValueProvider class using the execution context and the value of the PropertyName property.

.NET Framework
Available since 4.5
Return to top
Show: