ValueProviderResult Class

Syntax

public class ValueProviderResult

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ModelBinding.ValueProviderResult

Constructors

Microsoft.AspNet.Mvc.ModelBinding.ValueProviderResult.ValueProviderResult()
protected ValueProviderResult()
ValueProviderResult(System.Object, System.String, System.Globalization.CultureInfo)
Arguments:
  • rawValue (System.Object) –
  • attemptedValue (System.String) –
  • culture (System.Globalization.CultureInfo) –
public ValueProviderResult(object rawValue, string attemptedValue, CultureInfo culture)

Properties

AttemptedValue()
Return type:System.String
public string AttemptedValue { get; protected set; }
Culture()
Return type:System.Globalization.CultureInfo
public CultureInfo Culture { get; protected set; }
RawValue()
Return type:System.Object
public object RawValue { get; protected set; }

Methods

ConvertTo(System.Type)
Arguments:
  • type (System.Type) –
Return type:

System.Object

public object ConvertTo(Type type)
ConvertTo(System.Type, System.Globalization.CultureInfo)
Arguments:
  • type (System.Type) –
  • culture (System.Globalization.CultureInfo) –
Return type:

System.Object

public virtual object ConvertTo(Type type, CultureInfo culture)