This attribute is used to specify a custom ValueProviderFactory.
Inheritance Hierarchy
System.Object
  System.Attribute
    System.Web.Http.ParameterBindingAttribute
      System.Web.Http.ModelBinding.ModelBinderAttribute
        System.Web.Http.ValueProviders.ValueProviderAttribute
Namespace:  System.Web.Http.ValueProviders
Assembly:  System.Web.Http (in System.Web.Http.dll)
Syntax
'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
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Method|AttributeTargets.Parameter, Inherited = true, 
    AllowMultiple = false)]
public sealed class ValueProviderAttribute : ModelBinderAttribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Method|AttributeTargets::Parameter, Inherited = true, 
    AllowMultiple = false)]
public ref class ValueProviderAttribute sealed : public ModelBinderAttribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Method|AttributeTargets.Parameter, Inherited = true, 
    AllowMultiple = false)>]
type ValueProviderAttribute =  
    class
        inherit ModelBinderAttribute
    end
public final class ValueProviderAttribute extends ModelBinderAttribute
The ValueProviderAttribute type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .jpeg) | ValueProviderAttribute(Type) | Initializes a new instance of the ValueProviderAttribute. | 
| .jpeg) | ValueProviderAttribute(Type[]) | Initializes a new instance of the ValueProviderAttribute. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .jpeg) | BinderType | Gets or sets the type of model binder. (Inherited from ModelBinderAttribute.) | 
| .jpeg) | Name | Gets or sets the name to consider as the parameter name during model binding. (Inherited from ModelBinderAttribute.) | 
| .jpeg) | SuppressPrefixCheck | Gets or sets a value that specifies whether the prefix check should be suppressed. (Inherited from ModelBinderAttribute.) | 
| .jpeg) | TypeId | (Inherited from Attribute.) | 
| .jpeg) | ValueProviderFactoryTypes | Gets the types of object returned by the value provider factory. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .jpeg) | Equals | (Inherited from Attribute.) | 
| .jpeg) | GetBinding | Gets the binding for a parameter. (Inherited from ModelBinderAttribute.) | 
| .jpeg) | GetHashCode | (Inherited from Attribute.) | 
| .jpeg) | GetModelBinder | Get the IModelBinder for this type. (Inherited from ModelBinderAttribute.) | 
| .jpeg) | GetModelBinderProvider | Gets the model binder provider. (Inherited from ModelBinderAttribute.) | 
| .jpeg) | GetType | (Inherited from Object.) | 
| .jpeg) | GetValueProviderFactories | Gets the value provider factories. (Overrides ModelBinderAttribute.GetValueProviderFactories(HttpConfiguration).) | 
| .jpeg) | IsDefaultAttribute | (Inherited from Attribute.) | 
| .jpeg) | Match | (Inherited from Attribute.) | 
| .jpeg) | ToString | (Inherited from Object.) | 
Top
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| .jpeg) .jpeg) | _Attribute.GetIDsOfNames | (Inherited from Attribute.) | 
| .jpeg) .jpeg) | _Attribute.GetTypeInfo | (Inherited from Attribute.) | 
| .jpeg) .jpeg) | _Attribute.GetTypeInfoCount | (Inherited from Attribute.) | 
| .jpeg) .jpeg) | _Attribute.Invoke | (Inherited from Attribute.) | 
Top
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.