---
title: "CFPropertyListIsValid(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfpropertylistisvalid(_:_:)"
---

# CFPropertyListIsValid(_:_:)

Determines if a property list is valid.

## Declaration

```swift
func CFPropertyListIsValid(_ plist: CFPropertyList!, _ format: CFPropertyListFormat) -> Bool
```

## Parameters

- `plist`: The property list to validate.
- `format`: A constant that specifies the allowable format of plist. See doc://com.apple.corefoundation/documentation/CoreFoundation/CFPropertyListFormat for possible values.

## Return Value

Return Value true if the object graph rooted at plist is a valid property list graph—that is, the property list contains no cycles, only contains property list objects, and all dictionary keys are strings; otherwise false.

## Discussion

Discussion The debugging library version of this function prints out some useful messages.
