Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

ValueProviderResult.ConvertTo Method (Type, CultureInfo)

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

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public virtual Object ConvertTo(
	Type type,
	CultureInfo culture
)

Parameters

type
Type: System.Type

The target type.

culture
Type: System.Globalization.CultureInfo

The culture to use in the conversion.

Return Value

Type: System.Object
The converted value.
ExceptionCondition
ArgumentNullException

The type parameter is null.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.