<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NETunnelProviderManager/loadAllFromPreferences(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NETunnelProviderManager(cm)loadAllFromPreferencesWithCompletionHandler:"
  },
  "title" : "loadAllFromPreferences(completionHandler:)"
}
-->

# loadAllFromPreferences(completionHandler:)

Read all of the VPN configurations created by the calling app that have previously been saved to the Network Extension preferences.

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

## Parameters

`completionHandler`

A block that takes an <doc://com.apple.documentation/documentation/Foundation/NSArray> of `NETunnelProviderManager` 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 NSError object containing details about the error. See [`NEVPNManager`](/documentation/NetworkExtension/NEVPNManager) for a list of possible errors.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)