DataParameter.TryConvertValue(Object, String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Tente de convertir la valeur spécifiée en type spécifié.
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
Paramètres
- value
- Object
Valeur de paramètre potentielle.
- type
- String
Nom d’un type de paramètre.
Retours
Retourne la valeur convertie ou retourne null si aucune conversion n’était possible.