Conversions.ToShort 方法

定义

将指定的对象转换为 Short 值。

重载

ToShort(Object)

将对象转换为 Short 值。

ToShort(String)

将字符串转换为 Short 值。

ToShort(Object)

Source:
Conversions.vb
Source:
Conversions.vb
Source:
Conversions.vb

将对象转换为 Short 值。

public:
 static short ToShort(System::Object ^ Value);
public static short ToShort (object Value);
public static short ToShort (object? Value);
static member ToShort : obj -> int16
Public Shared Function ToShort (Value As Object) As Short

参数

Value
Object

要转换的对象。

返回

该对象的 Short 值。

适用于

ToShort(String)

Source:
Conversions.vb
Source:
Conversions.vb
Source:
Conversions.vb

将字符串转换为 Short 值。

public:
 static short ToShort(System::String ^ Value);
public static short ToShort (string Value);
public static short ToShort (string? Value);
static member ToShort : string -> int16
Public Shared Function ToShort (Value As String) As Short

参数

Value
String

要转换的字符串。

返回

该字符串的 Short 值。

适用于