BindConverter.TryConvertToNullableShort 方法

定义

尝试将值转换为可以为 null 的 Int16

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

参数

obj
Object

要转换的对象。

culture
CultureInfo

CultureInfo要用于转换的 。

value
Nullable<Int16>

转换后的值。

返回

true 如果转换成功,则为 ;否则为 false

适用于