Partager via


BindConverter.TryConvertToNullableDateTimeOffset Méthode

Définition

Surcharges

TryConvertToNullableDateTimeOffset(Object, CultureInfo, Nullable<DateTimeOffset>)

Tente de convertir une valeur en valeur nullable DateTimeOffset.

TryConvertToNullableDateTimeOffset(Object, CultureInfo, String, Nullable<DateTimeOffset>)

Tente de convertir une valeur en valeur nullable DateTimeOffset.

TryConvertToNullableDateTimeOffset(Object, CultureInfo, Nullable<DateTimeOffset>)

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 valeur nullable DateTimeOffset.

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

Paramètres

obj
Object

Objet à convertir.

culture
CultureInfo

à utiliser pour la CultureInfo conversion.

value
Nullable<DateTimeOffset>

Valeur convertie.

Retours

true si la conversion réussit, sinon false.

S’applique à

TryConvertToNullableDateTimeOffset(Object, CultureInfo, String, Nullable<DateTimeOffset>)

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 valeur nullable DateTimeOffset.

public:
 static bool TryConvertToNullableDateTimeOffset(System::Object ^ obj, System::Globalization::CultureInfo ^ culture, System::String ^ format, [Runtime::InteropServices::Out] Nullable<DateTimeOffset> % value);
public static bool TryConvertToNullableDateTimeOffset (object obj, System.Globalization.CultureInfo culture, string format, out DateTimeOffset? value);
public static bool TryConvertToNullableDateTimeOffset (object? obj, System.Globalization.CultureInfo? culture, string format, out DateTimeOffset? value);
static member TryConvertToNullableDateTimeOffset : obj * System.Globalization.CultureInfo * string * Nullable -> bool
Public Shared Function TryConvertToNullableDateTimeOffset (obj As Object, culture As CultureInfo, format As String, ByRef value As Nullable(Of DateTimeOffset)) 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
Nullable<DateTimeOffset>

Valeur convertie.

Retours

true si la conversion réussit, sinon false.

S’applique à