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

#### 函数定义

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

herr_t H5Pset_coll_metadata_write(hid_t propertylistId, hbool_t collective)


#### 参数

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


#### 返回值

返回零。
