---
title: GetVal(AscendString &value)
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/dataflowdevg/udfrefc_23_00005.html
sourcePath: /source/zh/canncommercial/900/others/dataflowdevg/udfrefc_23_00005.html
indexId: b1eb40c38c163a24a580432c304df43352ebeea9a4da9b70e65f76b79f1bfb8171
---
# GetVal(AscendString &value)

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | x |
| Atlas 推理系列产品 | x |
| Atlas 训练系列产品 | x |


#### 函数功能

获取string类型的属性值。


#### 函数原型

```
int32_t GetVal(AscendString &value) const = 0
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| value | 输出 | 获取的AscendString类型属性值。 |


#### 返回值

- 0：SUCCESS。
- 其他返回值请参考  UDF错误码
。


#### 异常处理

无。


#### 约束说明

无。
