---
title: "readAttributeChildRoleCount(completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterthreadnetworkdiagnostics/readattributechildrolecount(completionhandler:)"
---

# readAttributeChildRoleCount(completionHandler:)

## Declaration

```swift
func readAttributeChildRoleCount(completionHandler: @escaping @Sendable (NSNumber?, (any Error)?) -> Void)
```

```swift
func readAttributeChildRoleCount() async throws -> NSNumber
```
