---
title: "writeAttributePreferredExtendedPanID(withValue:params:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterthreadnetworkdirectory/writeattributepreferredextendedpanid(withvalue:params:completion:)"
---

# writeAttributePreferredExtendedPanID(withValue:params:completion:)

## Declaration

```swift
func writeAttributePreferredExtendedPanID(withValue value: Data?, params: MTRWriteParams?, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func writeAttributePreferredExtendedPanID(withValue value: Data?, params: MTRWriteParams?) async throws
```
