简体中文
Home > SCH_PrimitiveGenericPort > get
SCH_PrimitiveGenericPort.get() method
此 API 当前处于 BETA 预览状态,希望得到开发者的反馈。它的任何功能都可能在接下来的开发进程中被修改,请不要将它用于任何正式环境。
获取网络端口
签名
typescript
function get(primitiveIds: string): Promise<ISCH_PrimitiveGenericPort | undefined>;1
参数名
参数 | 类型 | 描述 |
|---|---|---|
primitiveIds | string | 网络端口的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组 |
返回值
Promise<ISCH_PrimitiveGenericPort | undefined>
网络端口图元对象,undefined 表示获取失败
备注
ADD since EDA v5