---
title: "loadAllFromPreferences(completionHandler:)"
framework: networkextension
role: symbol
role_heading: Type Method
path: "networkextension/neappproxyprovidermanager/loadallfrompreferences(completionhandler:)"
---

# loadAllFromPreferences(completionHandler:)

Load all of the App Proxy configurations associated with the calling app that have previously been saved to the Network Extension preferences.

## Declaration

```swift
class func loadAllFromPreferences(completionHandler: @escaping @Sendable ([NEAppProxyProviderManager]?, (any Error)?) -> Void)
```

```swift
class func loadAllFromPreferences() async throws -> [NEAppProxyProviderManager]
```

## Parameters

- `completionHandler`: A block that takes an doc://com.apple.documentation/documentation/Foundation/NSArray of doc://com.apple.networkextension/documentation/NetworkExtension/NEAppProxyProviderManager objects, and an doc://com.apple.documentation/documentation/Foundation/NSError object. This block will be executed on the caller’s main thread after the load operation is complete. If no configurations exist for the calling app then the managers parameter will be set to nil and the error parameter will be set to nil. If an error occurred while loading the configurations, the error parameter will be set to an doc://com.apple.documentation/documentation/Foundation/NSError object containing details about the error. See NEVPNError in doc://com.apple.networkextension/documentation/NetworkExtension/NEVPNManager for a list of possible errors.
