System.Web.UI.PropertyConverter.ObjectFromString Method

Converts the string value to the specified object type.

Syntax

public static object ObjectFromString (Type objType, System.Reflection.MemberInfo propertyInfo, string value)

Parameters

objType
The Type to create from value.
propertyInfo
The properties to use during conversion.
value
The string to convert into an object.

Returns

An object of type objType.

Remarks

The PropertyConverter.ObjectFromString(Type, System.Reflection.MemberInfo, string) method is used to convert a string value to an object.

Note:

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. To convert a string value to an object, use the Parse method for that object if the object provides a Parse method. For example, an int object can be created from a string through the int.Parse(string) method.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0