BindConverter.TryConvertToNullableDateTime Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
TryConvertToNullableDateTime(Object, CultureInfo, Nullable<DateTime>) |
Intenta convertir un valor en un que acepta DateTimevalores NULL. |
TryConvertToNullableDateTime(Object, CultureInfo, String, Nullable<DateTime>) |
Intenta convertir un valor en un que acepta DateTimevalores NULL. |
TryConvertToNullableDateTime(Object, CultureInfo, Nullable<DateTime>)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Intenta convertir un valor en un que acepta DateTimevalores NULL.
public:
static bool TryConvertToNullableDateTime(System::Object ^ obj, System::Globalization::CultureInfo ^ culture, [Runtime::InteropServices::Out] Nullable<DateTime> % value);
public static bool TryConvertToNullableDateTime (object obj, System.Globalization.CultureInfo culture, out DateTime? value);
public static bool TryConvertToNullableDateTime (object? obj, System.Globalization.CultureInfo? culture, out DateTime? value);
static member TryConvertToNullableDateTime : obj * System.Globalization.CultureInfo * Nullable -> bool
Public Shared Function TryConvertToNullableDateTime (obj As Object, culture As CultureInfo, ByRef value As Nullable(Of DateTime)) As Boolean
Parámetros
- obj
- Object
Objeto que se va a convertir.
- culture
- CultureInfo
que CultureInfo se va a usar para la conversión.
Devoluciones
true
es si la conversión es correcta; de lo contrario false
, es .
Se aplica a
TryConvertToNullableDateTime(Object, CultureInfo, String, Nullable<DateTime>)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Intenta convertir un valor en un que acepta DateTimevalores NULL.
public:
static bool TryConvertToNullableDateTime(System::Object ^ obj, System::Globalization::CultureInfo ^ culture, System::String ^ format, [Runtime::InteropServices::Out] Nullable<DateTime> % value);
public static bool TryConvertToNullableDateTime (object obj, System.Globalization.CultureInfo culture, string format, out DateTime? value);
public static bool TryConvertToNullableDateTime (object? obj, System.Globalization.CultureInfo? culture, string format, out DateTime? value);
static member TryConvertToNullableDateTime : obj * System.Globalization.CultureInfo * string * Nullable -> bool
Public Shared Function TryConvertToNullableDateTime (obj As Object, culture As CultureInfo, format As String, ByRef value As Nullable(Of DateTime)) As Boolean
Parámetros
- obj
- Object
Objeto que se va a convertir.
- culture
- CultureInfo
que CultureInfo se va a usar para la conversión.
- format
- String
Cadena de formato que se va a usar en la conversión.
Devoluciones
true
es si la conversión es correcta; de lo contrario false
, es .