You Cann assign the parameter value using the parameter's alias name in the scripting using this attribute. (你可以使用本属性将函数的参数名进行重命名,这样子你就可以使用本属性得到一个书写更加漂亮的编程脚本文件了)
Parameter
01 Syntax
Microsoft.VisualBasic.Scripting.MetaData.Parameter
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | You can using this attribute to customize your API interface. |
| GetAliasNameView | 1 | 当没有定义属性的时候,会返回参数名 |
| ToString | 1 | |
| GetParameterNameAlias | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| ParameterInfo | 1 | 请使用这个方法Parameter.GetParameterNameAlias())来获取参数信息 |
| Alias | 1 | The alias name of this function parameter in the scripting. |
| Description | 1 | The description information in the scripting help system.(在帮助信息里面进行显示的本参数的简要的描述信息) |
| TypeInfo | 1 |
04 Members
#ctor(
String, String)You can using this attribute to customize your API interface.
Parameters
| Name | Type | Description |
|---|---|---|
Alias | String | The alias name of this function parameter in the scripting.(当前脚本函数的这个参数的别名) |
MyDescription | String | The description information in the scripting help system.(这个信息会显示在脚本环境的帮助系统之中) |
GetAliasNameView(
ParameterInfo)当没有定义属性的时候,会返回参数名
Parameters
| Name | Type | Description |
|---|---|---|
pInfo | ParameterInfo | - |
ParameterInfo
请使用这个方法Parameter.GetParameterNameAlias()来获取参数信息
Alias
The alias name of this function parameter in the scripting.
Remarks
(脚本函数的参数的别名)
Description
The description information in the scripting help system.(在帮助信息里面进行显示的本参数的简要的描述信息)
TypeInfo
ToString()
GetParameterNameAlias(
ParameterInfo, Boolean)