Partager via


ValueProviderResult Class

Represents the result of binding a value (such as from a form post or query string) to an action-method argument property, or to the argument itself.

Inheritance Hierarchy

System.Object
  System.Web.Http.ValueProviders.ValueProviderResult

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

Syntax

'Declaration
<SerializableAttribute> _
Public Class ValueProviderResult
'Usage
Dim instance As ValueProviderResult
[SerializableAttribute]
public class ValueProviderResult
[SerializableAttribute]
public ref class ValueProviderResult
[<SerializableAttribute>]
type ValueProviderResult =  class end
public class ValueProviderResult

The ValueProviderResult type exposes the following members.

Constructors

  Name Description
Protected method ValueProviderResult() Initializes a new instance of the ValueProviderResult class.
Public method ValueProviderResult(Object, String, CultureInfo) Initializes a new instance of the ValueProviderResult class.

Top

Properties

  Name Description
Public property AttemptedValue Gets or sets the raw value that is converted to a string for display.
Public property Culture Gets or sets the culture.
Public property RawValue Gets or set the raw value that is supplied by the value provider.

Top

Methods

  Name Description
Public method ConvertTo(Type) Converts the value that is encapsulated by this result to the specified type.
Public method ConvertTo(Type, CultureInfo) Converts the value that is encapsulated by this result to the specified type by using the specified culture information.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

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.

See Also

Reference

System.Web.Http.ValueProviders Namespace