Interpreter {Microsoft.VisualBasic.CommandLine} | .NET clr documentation |
Command line interpreter for your CLI program. (命令行解释器,请注意,在调试模式之下,命令行解释器会在运行完命令之后暂停,而Release模式之下则不会。 假若在调试模式之下发现程序有很长一段时间处于cpu占用为零的静止状态,则很有可能已经运行完命令并且等待 回车退出)
# namespace Microsoft.VisualBasic.CommandLine
export class Interpreter {
# 当前的解释器内所容纳的所有的CLI API列表
APIList: iterates(APIEntryPoint);
# List all of the command line entry point name which were contains in this cli interpreter.
# (列举出本CLI命令行解释器之中的所有的命令行执行入口点的名称)
APINameList: iterates(String);
# Gets the command counts in current cli interpreter.(返回本CLI命令行解释器之中所包含有的命令的数目)
Count: integer;
# Public Delegate Function ExecuteEmptyCli() As Integer,
# (ExecuteEmptyCLI: 假若所传入的命令行是空的,就会执行这个函数指针)
ExecuteEmptyCli: ExecuteEmptyCLI;
# Public Delegate Function ExecuteFile(path As String, args As String()) As Integer,
# (ExecuteFile: 假若所传入的命令行的name是文件路径,解释器就会执行这个函数指针)
# 这个函数指针一般是用作于执行脚本程序的
ExecuteFile: ExecuteFile;
ExecuteNotFound: ExecuteNotFound;
ExecuteQuery: ExecuteQuery;
Info: Namespace;
IsReadOnly: boolean;
# Returns the command entry info list array.
ListCommandInfo: APIEntryPoint[];
Stack: string;
# The CLI API container Module/Class type information.(申明这个解释器的命令行API容器类型)
Type: Type;
}
APIList
: iterates(APIEntryPoint)APINameList
: iterates(String)ExecuteEmptyCli
: ExecuteEmptyCLIExecuteFile
: ExecuteFileExecuteNotFound
: ExecuteNotFoundExecuteQuery
: ExecuteQueryInfo
: NamespaceListCommandInfo
: APIEntryPointType
: Type