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

# readAttributeDetachedRoleCount(completion:)

## Declaration

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

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