nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Runtime / APIDelegate

APIDelegate

Full name Microsoft.VisualBasic.CommandLine.Reflection.EntryPoints.APIDelegate Assembly Microsoft.VisualBasic.Runtime Members 9

01 Syntax

Microsoft.VisualBasic.CommandLine.Reflection.EntryPoints.APIDelegate

02 Methods

NameOverloadsSummary
.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

NameOverloadsSummary
Name 1 The usage name of this command line entry point.(本命令行对象的调用命令名称)
Info 1
Usage 1
Example 1

04 Members

method .ctor #
#ctor(Binding(Of ExportApiModel, MethodInfo), Func(Of Object(), Int32))

不可以使用本方法初始化目标对象为实例方法的类型

Parameters
NameTypeDescription
attributeBinding(Of ExportApiModel, MethodInfo)

-

InvokeFunc(Of Object(), Int32)

-

method Execute #
Execute(CommandLine)
  • 如果目标方法是一个Function函数,则退出代码为目标函数返回值
  • 如果目标方法是一个无返回的Sub,则退出代码永远都是零
Parameters
NameTypeDescription
argsCommandLine

数组的长度必须与目标函数的参数的数目一致,否则短于目标函数的参数的数目的数组会使用Nothing来填充缺少的部分,而多于目标函数的参数会被截断

method MatchArgumentName #
MatchArgumentName(CommandLine, String, Parameter)

convert the clr function parameter name as the commandline argument name

Parameters
NameTypeDescription
argsCommandLine

-

nameString

-

[alias]Parameter

-

property Name #
Name

The usage name of this command line entry point.(本命令行对象的调用命令名称)

property Info #
Info
property Usage #
Usage
property Example #
Example
method HelpInformation #
HelpInformation(Boolean)
method ToString #
ToString()