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.Mvc.ValueProviderResult
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Class ValueProviderResult
[SerializableAttribute]
public class ValueProviderResult
[SerializableAttribute]
public ref class ValueProviderResult
The ValueProviderResult type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ValueProviderResult() | Initializes a new instance of the ValueProviderResult class. | |
ValueProviderResult(Object, String, CultureInfo) | Initializes a new instance of the ValueProviderResult class by using the specified raw value, attempted value, and culture information. |
Top
Properties
Name | Description | |
---|---|---|
AttemptedValue | Gets or sets the raw value that is converted to a string for display. | |
Culture | Gets or sets the culture. | |
RawValue | Gets or set the raw value that is supplied by the value provider. |
Top
Methods
Name | Description | |
---|---|---|
ConvertTo(Type) | Converts the value that is encapsulated by this result to the specified type. | |
ConvertTo(Type, CultureInfo) | Converts the value that is encapsulated by this result to the specified type by using the specified culture information. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (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.