GetHomophoneCount方法(pinyin)

Microsoft Pin-Yin Converter

Simplified Chinese Pin-Yin Conversion Library GetHomophoneCount方法(pinyin)
命名空间 > Microsoft.International.Converters.PinYinConverter > ChineseChar > GetHomophoneCount(String)
检索具有指定拼音的字符数。
语法
C# Visual Basic Managed C++
public static short GetHomophoneCount (
	string pinyin
)
Public Shared Function GetHomophoneCount ( _
	pinyin As String _
) As Short
public:
static short GetHomophoneCount (
	String^ pinyin
)
参数
pinyin (String)
显示需要被识别的拼音字符串。
返回值
返回具有指定拼音的字符数。 如果拼音不是有效值则返回-1。
备注
请参阅ChineseChar来查看使用ChineseChar的实例。
异常
异常 条件
ArgumentNullException 拼音是一个空引用。

程序集: ChnCharInfo (模块: ChnCharInfo) 版本: 1.0.0.0