# Rcp_ContentOrPathOrCallback

> phone 5.0.0(12)+ | 2in1 5.0.1(13)+ | tablet 5.0.0(12)+ | tv 5.1.1(19)+ | wearable 5.1.0(18)+

## 概述

[Rcp_FormFieldFileValue](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/_rcp___form_field_file_value)中使用的简单表单数据字段值。

**起始版本：** 5.0.0(12)

**相关模块：** [RemoteCommunication](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/remote-communication-overview)

**所在头文件：** [rcp.h](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/rcp_8h)

## 汇总

### 成员变量

|名称|描述|
|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------|
|[Rcp_ContentOrPathOrCallbackType](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/remote-communication-overview#rcp_contentorpathorcallbacktype) [type](#type)|表示union中使用的数据类型。|
|union { [Rcp_Buffer](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/_rcp___buffer) [content](#content); char [path](#path) [[RCP_MAX_PATH_LEN](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/remote-communication-overview#rcp_max_path_len)]; [Rcp_GetDataCallback](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/remote-communication-overview#rcp_getdatacallback) [callback](#callback); } data|content: 文本数据。 path: 文件路径。 callback: 获取数据的回调函数。|

## 结构体成员变量说明

### callback

```cpp
Rcp_GetDataCallback Rcp_ContentOrPathOrCallback::callback
```

**描述**

获取数据的回调。

### content

```cpp
Rcp_Buffer Rcp_ContentOrPathOrCallback::content
```

**描述**

文本数据。

### path

```cpp
char Rcp_ContentOrPathOrCallback::path[RCP_MAX_PATH_LEN]
```

**描述**

文件路径。

### type

```cpp
Rcp_ContentOrPathOrCallbackType Rcp_ContentOrPathOrCallback::type
```

**描述**

union中使用的数据类型。

