---
title: NEOnDemandRuleEvaluateConnection
framework: networkextension
role: symbol
role_heading: Class
path: networkextension/neondemandruleevaluateconnection
---

# NEOnDemandRuleEvaluateConnection

A VPN On Demand rule that evaluate the app’s connection to determine whether to run its action.

## Declaration

```swift
class NEOnDemandRuleEvaluateConnection
```

## Overview

Overview When rules of this class match, the properties of the network connection being established are matched against a set of connection rules. The action of the matched rule (if any) is used to determine whether or not the VPN will be started.

## Topics

### Accessing connection rules

- [connectionRules](networkextension/neondemandruleevaluateconnection/connectionrules.md)
- [NEEvaluateConnectionRule](networkextension/neevaluateconnectionrule.md)

## Relationships

### Inherits From

- [NEOnDemandRule](networkextension/neondemandrule.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Settings

- [NEOnDemandRuleConnect](networkextension/neondemandruleconnect.md)
- [NEOnDemandRuleDisconnect](networkextension/neondemandruledisconnect.md)
- [NEOnDemandRuleIgnore](networkextension/neondemandruleignore.md)
- [NEOnDemandRule](networkextension/neondemandrule.md)
