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

# readAttributeChildRoleCount(completion:)

## Declaration

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

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