---
name: "mongoc_uri_has_option"
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_has_option"
---

# mongoc\_uri\_has\_option(3)

## SYNOPSIS

```
bool
mongoc_uri_has_option (const mongoc_uri_t *uri, const char *option);
```

## PARAMETERS

- •

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

- •

  **option**: The name of an option, case insensitive.

## DESCRIPTION

Returns true if the option was present in the initial MongoDB URI.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
