Partilhar via


DataParameter.TryConvertValue(Object, String) Method

Definition

Attempts to convert the specified value to the specified type.

protected:
 virtual System::Object ^ TryConvertValue(System::Object ^ value, System::String ^ type);
protected virtual object TryConvertValue (object value, string type);
abstract member TryConvertValue : obj * string -> obj
override this.TryConvertValue : obj * string -> obj
Protected Overridable Function TryConvertValue (value As Object, type As String) As Object

Parameters

value
Object

A potential parameter value.

type
String

The name of a parameter type.

Returns

The converted value, or null if no conversion is possible.

Applies to