Delen via


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.

[System.Serializable]
public class ValueProviderResult
type ValueProviderResult = class
Public Class ValueProviderResult
Inheritance
ValueProviderResult
Attributes

Constructors

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.

Properties

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.

Methods

ConvertTo(Type, CultureInfo)

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

ConvertTo(Type)

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

Applies to