ToInt

MessageObjectProperty.ToInt method

将属性值转换为整数。

public int ToInt()

返回值

整数值,如果类型不能转换为整数则返回 0。

也可以看看