---
name: "mongoc_uri_get_write_concern"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_uri_get_write_concern"
---

# mongoc\_uri\_get\_write\_concern(3)

## SYNOPSIS

```
const mongoc_write_concern_t *
mongoc_uri_get_write_concern (const mongoc_uri_t *uri);
```

## PARAMETERS

- •

  **uri**: A *mongoc\_uri\_t*.

## DESCRIPTION

Fetches a write concern that is owned by the URI instance. This write concern is configured based on URI parameters.

## RETURNS

Returns a *mongoc\_write\_concern\_t* that should not be modified or freed if **uri** has a write concern provided, otherwise **NULL**.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
