Share via


SimpleModelBinderProvider Class

 

Provides a model binder for a simple type.

Namespace:   Microsoft.Web.Mvc.ModelBinding
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Web.Mvc.ModelBinding.ModelBinderProvider
    Microsoft.Web.Mvc.ModelBinding.SimpleModelBinderProvider

Syntax

public sealed class SimpleModelBinderProvider : ModelBinderProvider
public ref class SimpleModelBinderProvider sealed : ModelBinderProvider
[<Sealed>]
type SimpleModelBinderProvider = 
    class
        inherit ModelBinderProvider
    end
Public NotInheritable Class SimpleModelBinderProvider
    Inherits ModelBinderProvider

Constructors

Name Description
System_CAPS_pubmethod SimpleModelBinderProvider(Type, Func<IExtensibleModelBinder>)

Initializes a new instance of the SimpleModelBinderProvider class by using the specified model type and the model binder factory.

System_CAPS_pubmethod SimpleModelBinderProvider(Type, IExtensibleModelBinder)

Initializes a new instance of the SimpleModelBinderProvider class by using the specified model type and the model binder.

Properties

Name Description
System_CAPS_pubproperty ModelType

Gets the type of the model.

System_CAPS_pubproperty SuppressPrefixCheck

Gets or sets a value that specifies whether the prefix check should be suppressed.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetBinder(ControllerContext, ExtensibleModelBindingContext)

Returns a model binder by using the specified execution context and binding context.(Overrides ModelBinderProvider.GetBinder(ControllerContext, ExtensibleModelBindingContext).)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Web.Mvc.ModelBinding Namespace

Return to top