Partager via


BindConverter.TryConvertToDateTime Méthode

Définition

Surcharges

TryConvertToDateTime(Object, CultureInfo, DateTime)

Tente de convertir une valeur en DateTime.

TryConvertToDateTime(Object, CultureInfo, String, DateTime)

Tente de convertir une valeur en DateTime.

TryConvertToDateTime(Object, CultureInfo, DateTime)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Tente de convertir une valeur en DateTime.

public:
 static bool TryConvertToDateTime(System::Object ^ obj, System::Globalization::CultureInfo ^ culture, [Runtime::InteropServices::Out] DateTime % value);
public static bool TryConvertToDateTime (object obj, System.Globalization.CultureInfo culture, out DateTime value);
public static bool TryConvertToDateTime (object? obj, System.Globalization.CultureInfo? culture, out DateTime value);
static member TryConvertToDateTime : obj * System.Globalization.CultureInfo * DateTime -> bool
Public Shared Function TryConvertToDateTime (obj As Object, culture As CultureInfo, ByRef value As DateTime) As Boolean

Paramètres

obj
Object

Objet à convertir.

culture
CultureInfo

à utiliser pour la CultureInfo conversion.

value
DateTime

Valeur convertie.

Retours

true si la conversion réussit, sinon false.

S’applique à

TryConvertToDateTime(Object, CultureInfo, String, DateTime)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Tente de convertir une valeur en DateTime.

public:
 static bool TryConvertToDateTime(System::Object ^ obj, System::Globalization::CultureInfo ^ culture, System::String ^ format, [Runtime::InteropServices::Out] DateTime % value);
public static bool TryConvertToDateTime (object obj, System.Globalization.CultureInfo culture, string format, out DateTime value);
public static bool TryConvertToDateTime (object? obj, System.Globalization.CultureInfo? culture, string format, out DateTime value);
static member TryConvertToDateTime : obj * System.Globalization.CultureInfo * string * DateTime -> bool
Public Shared Function TryConvertToDateTime (obj As Object, culture As CultureInfo, format As String, ByRef value As DateTime) As Boolean

Paramètres

obj
Object

Objet à convertir.

culture
CultureInfo

à utiliser pour la CultureInfo conversion.

format
String

Chaîne de format à utiliser dans la conversion.

value
DateTime

Valeur convertie.

Retours

true si la conversion réussit, sinon false.

S’applique à