Export (0) Print
Expand All

ValueProviderAttribute Class

This attribute is used to specify a custom ValueProviderFactory.

Namespace:  System.Web.Http.ValueProviders
Assembly:  System.Web.Http (in System.Web.Http.dll)

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Method Or AttributeTargets.Parameter, Inherited := True,  _
	AllowMultiple := False)> _
Public NotInheritable Class ValueProviderAttribute _
	Inherits ModelBinderAttribute
'Usage
Dim instance As ValueProviderAttribute

The ValueProviderAttribute type exposes the following members.

  NameDescription
Public methodValueProviderAttribute(Type)Initializes a new instance of the ValueProviderAttribute.
Public methodValueProviderAttribute(Type())Initializes a new instance of the ValueProviderAttribute.
Top

  NameDescription
Public propertyBinderTypeGets or sets the type of model binder. (Inherited from ModelBinderAttribute.)
Public propertyNameGets or sets the name to consider as the parameter name during model binding. (Inherited from ModelBinderAttribute.)
Public propertySuppressPrefixCheckGets or sets a value that specifies whether the prefix check should be suppressed. (Inherited from ModelBinderAttribute.)
Public propertyTypeId (Inherited from Attribute.)
Public propertyValueProviderFactoryTypesGets the types of object returned by the value provider factory.
Top

  NameDescription
Public methodEquals (Inherited from Attribute.)
Public methodGetBindingGets the binding for a parameter. (Inherited from ModelBinderAttribute.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetModelBinder Get the IModelBinder for this type. (Inherited from ModelBinderAttribute.)
Public methodGetModelBinderProviderGets the model binder provider. (Inherited from ModelBinderAttribute.)
Public methodGetType (Inherited from Object.)
Public methodGetValueProviderFactoriesGets the value provider factories. (Overrides ModelBinderAttribute.GetValueProviderFactories(HttpConfiguration).)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodMatch (Inherited from Attribute.)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate method_Attribute.GetIDsOfNames (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute.GetTypeInfo (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute.GetTypeInfoCount (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute.Invoke (Inherited from Attribute.)
Top

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