Conversions.ToInteger 方法  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将指定对象转换为整数值。
重载
| ToInteger(Object) | 
						 将对象转换为整数值。  | 
        	
| ToInteger(String) | 
						 将字符串转换为整数值。  | 
        	
ToInteger(Object)
- Source:
 - Conversions.vb
 
- Source:
 - Conversions.vb
 
- Source:
 - Conversions.vb
 
- Source:
 - Conversions.vb
 
将对象转换为整数值。
public:
 static int ToInteger(System::Object ^ Value);
	public static int ToInteger(object Value);
	public static int ToInteger(object? Value);
	static member ToInteger : obj -> int
	Public Shared Function ToInteger (Value As Object) As Integer
	参数
- Value
 - Object
 
要转换的对象。
返回
该对象的 int 值。
适用于
ToInteger(String)
- Source:
 - Conversions.vb
 
- Source:
 - Conversions.vb
 
- Source:
 - Conversions.vb
 
- Source:
 - Conversions.vb
 
将字符串转换为整数值。
public:
 static int ToInteger(System::String ^ Value);
	public static int ToInteger(string Value);
	public static int ToInteger(string? Value);
	static member ToInteger : string -> int
	Public Shared Function ToInteger (Value As String) As Integer
	参数
- Value
 - String
 
要转换的字符串。
返回
该字符串的 int 值。