Share via


BindConverter.TryConvertToNullableDateTimeOffset Method

Definition

Overloads

TryConvertToNullableDateTimeOffset(Object, CultureInfo, Nullable<DateTimeOffset>)

Attempts to convert a value to a nullable DateTimeOffset.

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

Attempts to convert a value to a 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

Attempts to convert a value to a 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

Parameters

obj
Object

The object to convert.

culture
CultureInfo

The CultureInfo to use for conversion.

value
Nullable<DateTimeOffset>

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to

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

Attempts to convert a value to a 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

Parameters

obj
Object

The object to convert.

culture
CultureInfo

The CultureInfo to use for conversion.

format
String

The format string to use in conversion.

value
Nullable<DateTimeOffset>

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to