ValueProviderResult ValueProviderResult ValueProviderResult Class

Definition

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.

[Serializable]
public class ValueProviderResult
type ValueProviderResult = class
Public Class ValueProviderResult
Inheritance
ValueProviderResultValueProviderResultValueProviderResult
Attributes
SerializableAttribute

Constructors

ValueProviderResult() ValueProviderResult() ValueProviderResult()

Initializes a new instance of the ValueProviderResult class.

ValueProviderResult(Object, String, CultureInfo) ValueProviderResult(Object, String, CultureInfo) ValueProviderResult(Object, String, CultureInfo)

Initializes a new instance of the ValueProviderResult class by using the specified raw value, attempted value, and culture information.

Properties

AttemptedValue AttemptedValue AttemptedValue

Gets or sets the raw value that is converted to a string for display.

Culture Culture Culture

Gets or sets the culture.

RawValue RawValue RawValue

Gets or set the raw value that is supplied by the value provider.

Methods

ConvertTo(Type) ConvertTo(Type) ConvertTo(Type)

Converts the value that is encapsulated by this result to the specified type.

ConvertTo(Type, CultureInfo) ConvertTo(Type, CultureInfo) ConvertTo(Type, CultureInfo)

Converts the value that is encapsulated by this result to the specified type by using the specified culture information.

Applies to