---
title: action
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/neondemandrule/action
---

# action

The action of the On Demand Rule.

## Declaration

```swift
var action: NEOnDemandRuleAction { get }
```

## Discussion

Discussion The action of the On Demand Rule represents the behavior for triggering the corresponding VPN when the rule conditions are matched.

## See Also

### Accessing the rule action

- [NEOnDemandRuleAction](networkextension/neondemandruleaction.md)
