---
title: NEEvaluateConnectionRule
framework: networkextension
role: symbol
role_heading: Class
path: networkextension/neevaluateconnectionrule
---

# NEEvaluateConnectionRule

NEEvaluateConnectionRule associates properties of network connections with an action.

## Declaration

```swift
class NEEvaluateConnectionRule
```

## Topics

### Initializing a Rule

- [init(matchDomains:andAction:)](networkextension/neevaluateconnectionrule/init(matchdomains:andaction:).md)

### Accessing Rule Match Properties

- [matchDomains](networkextension/neevaluateconnectionrule/matchdomains.md)
- [useDNSServers](networkextension/neevaluateconnectionrule/usednsservers.md)
- [probeURL](networkextension/neevaluateconnectionrule/probeurl.md)

### Accessing the Rule Action

- [action](networkextension/neevaluateconnectionrule/action.md)
- [NEEvaluateConnectionRuleAction](networkextension/neevaluateconnectionruleaction.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.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

### Accessing connection rules

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