---
title: aclopSetAttrListDataType
description: "设置指定属性列表的数据类型。同步接口。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/aadgc/aclcppdevg_03_1811.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/aadgc/aclcppdevg_03_1811.html
indexId: 75082a1a847c9ad7641a4f29fbf84258fe99d742d987399fd914a4bc9e973aac105
---
# aclopSetAttrListDataType

#### 函数功能

设置指定属性列表的数据类型。同步接口。


#### 函数原型

aclError aclopSetAttrListDataType(aclopAttr *attr, const char *attrName, int numValues, const aclDataType values[])


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| attr | 输出 | aclopAttr类型的指针。 需提前调用aclopCreateAttr接口创建aclopAttr类型。 |
| attrName | 输入 | 属性名的指针。 |
| numValues | 输入 | 属性值数目。 |
| values | 输入 | 属性值的数组。 |


#### 返回值说明

返回0表示成功，返回非0表示失败。
