Home > LIB_Device > copy
LIB_Device.copy() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
复制器件
Signature
typescript
copy(deviceUuid: string, libraryUuid: string, targetLibraryUuid: string, targetClassification?: ILIB_ClassificationIndex, newDeviceName?: string): Promise<string | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
deviceUuid | string | 器件 UUID |
libraryUuid | string | 库 UUID,可以使用 LIB_LibrariesList 内的接口获取 |
targetLibraryUuid | string | 目标库 UUID |
targetClassification | (Optional) 目标库内的分类 | |
newDeviceName | string | (Optional) 新器件名称,如若目标库内存在重名器件将导致复制失败 |
Returns
Promise<string | undefined>
目标库内新器件的 UUID