DataParameter.TryConvertValue(Object, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.