Share via


BindConverter.TryConvertToLong(Object, CultureInfo, Int64) Method

Definition

Attempts to convert a value to a Int64.

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

Parameters

obj
Object

The object to convert.

culture
CultureInfo

The CultureInfo to use for conversion.

value
Int64

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to