APIDelegate
01 Syntax
Microsoft.VisualBasic.CommandLine.Reflection.EntryPoints.APIDelegate
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | 不可以使用本方法初始化目标对象为实例方法的类型 |
| Execute | 1 | + 如果目标方法是一个Function函数,则退出代码为目标函数返回值 + 如果目标方法是一个无返回的Sub,则退出代码永远都是零 |
| MatchArgumentName | 1 | convert the clr function parameter name as the commandline argument name |
| HelpInformation | 1 | |
| ToString | 1 |
03 Properties
04 Members
#ctor(Binding(Of ExportApiModel, MethodInfo),
Func(Of Object(), Int32))不可以使用本方法初始化目标对象为实例方法的类型
Parameters
| Name | Type | Description |
|---|---|---|
attribute | Binding(Of ExportApiModel, MethodInfo) | - |
Invoke | Func(Of Object(), Int32) | - |
Execute(CommandLine)
- 如果目标方法是一个Function函数,则退出代码为目标函数返回值
- 如果目标方法是一个无返回的Sub,则退出代码永远都是零
Parameters
| Name | Type | Description |
|---|---|---|
args | CommandLine | 数组的长度必须与目标函数的参数的数目一致,否则短于目标函数的参数的数目的数组会使用Nothing来填充缺少的部分,而多于目标函数的参数会被截断 |
convert the clr function parameter name as the commandline argument name
Parameters
| Name | Type | Description |
|---|---|---|
args | CommandLine | - |
name | String | - |
[alias] | Parameter | - |
Name
The usage name of this command line entry point.(本命令行对象的调用命令名称)
Info
Usage
Example
HelpInformation(
Boolean)ToString()