BindConverter.TryConvertToDateTime Metodo

Definizione

Overload

TryConvertToDateTime(Object, CultureInfo, DateTime)

Tenta di convertire un valore in un DateTimeoggetto .

TryConvertToDateTime(Object, CultureInfo, String, DateTime)

Tenta di convertire un valore in un DateTimeoggetto .

TryConvertToDateTime(Object, CultureInfo, DateTime)

Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs

Tenta di convertire un valore in un DateTimeoggetto .

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

Parametri

obj
Object

Oggetto da convertire.

culture
CultureInfo

Oggetto CultureInfo da usare per la conversione.

value
DateTime

Valore convertito.

Restituisce

true se la conversione ha esito positivo, in caso contrario false.

Si applica a

TryConvertToDateTime(Object, CultureInfo, String, DateTime)

Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs

Tenta di convertire un valore in un DateTimeoggetto .

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

Parametri

obj
Object

Oggetto da convertire.

culture
CultureInfo

Oggetto CultureInfo da usare per la conversione.

format
String

Stringa di formato da usare nella conversione.

value
DateTime

Valore convertito.

Restituisce

true se la conversione ha esito positivo, in caso contrario false.

Si applica a