Dela via


BindConverter.TryConvertToNullableLong Method

Definition

Attempts to convert a value to a nullable Int64.

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

Parameters

obj
Object

The object to convert.

culture
CultureInfo

The CultureInfo to use for conversion.

value
Nullable<Int64>

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to