---
title: 设置元数据写入模式
description: "将元数据写入模式设置为集体或独立（默认）。"
url: https://www.hikunpeng.com/document/detail/zh/hpchistory/hpckit/develop2400/userg_hyperio_0113.html
sourcePath: /source/zh/hpchistory/hpckit/develop2400/userg_hyperio_0113.html
indexId: 4b7b2a15f0904bd38403851446f9babbbd766dc7c038b1772741628d4ccce8d264
---
# 设置元数据写入模式

#### 函数定义

将元数据写入模式设置为集体或独立（默认）。

herr_t H5Pset_coll_metadata_write(hid_t propertylisId, hbool_t collective)


#### 参数

| 参数名 | 描述 | 取值范围 | 输入/输出 |
| --- | --- | --- | --- |
| propertylisId | 文件访问属性列表标识符。 | 整数 | 输入 |
| collective | 布尔值，指示元数据写入是集体（>0）还是独立（0）。默认模式：独立（0）。 | 布尔值 | 输出 |


#### 返回值

返回零。
