---
title: "propertyList(_:isValidFor:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/propertylistserialization/propertylist(_:isvalidfor:)"
---

# propertyList(_:isValidFor:)

Returns a Boolean value that indicates whether a given property list is valid for a given format.

## Declaration

```swift
class func propertyList(_ plist: Any, isValidFor format: PropertyListSerialization.PropertyListFormat) -> Bool
```

## Parameters

- `plist`: A property list object.
- `format`: A property list format. For possible values, see doc://com.apple.foundation/documentation/Foundation/PropertyListSerialization/PropertyListFormat.

## Return Value

Return Value true if plist is a valid property list in format format, otherwise false.
