【VB.Net】字节数与字符数的取得

1,取得字符数
Len(aStr)
2,取得字节数
System.Text.Encoding.GetEncoding("Shift_JIS").GetByteCount(aStr)