SR.GetShort 方法
定义
返回 16 位有符号整数。Returns a 16-bit signed integer. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
重载
| GetShort(String) |
返回指定 String 的名称。Returns the name of the specified String. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. |
| GetShort(CultureInfo, String) |
返回指定的 String 的名称,根据 |
GetShort(String)
返回指定 String 的名称。Returns the name of the specified String. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
public:
static short GetShort(System::String ^ name);
public static short GetShort (string name);
static member GetShort : string -> int16
Public Shared Function GetShort (name As String) As Short
参数
返回
由 name 参数引用的 String 的值。The value of the String referred to by the name parameter.
适用于
GetShort(CultureInfo, String)
返回指定的 String 的名称,根据 culture 参数所指定的信息设置名称的格式。Returns the name of the specified String, formatted with respect to the information specified by the culture parameter. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
public:
static short GetShort(System::Globalization::CultureInfo ^ culture, System::String ^ name);
public static short GetShort (System.Globalization.CultureInfo culture, string name);
static member GetShort : System.Globalization.CultureInfo * string -> int16
Public Shared Function GetShort (culture As CultureInfo, name As String) As Short
参数
- culture
- CultureInfo
一个 CultureInfo,包含用于设置返回值格式的相关区域性信息。A CultureInfo that contains the relevant cultural information used to format the return value.
返回
name 参数引用的 String 的值,根据包含在由 culture 参数引用的 CultureInfo 对象中的区域性信息设置该值的格式。The value of the String referred to by the name parameter, formatted with respect to the culture information contained in the CultureInfo object referred to by the culture parameter.