Sdílet prostřednictvím


ArmNetworkModelFactory.MatchedRule(String, String) Method

Definition

Initializes a new instance of MatchedRule.

public static Azure.ResourceManager.Network.Models.MatchedRule MatchedRule (string ruleName = default, string action = default);
static member MatchedRule : string * string -> Azure.ResourceManager.Network.Models.MatchedRule
Public Shared Function MatchedRule (Optional ruleName As String = Nothing, Optional action As String = Nothing) As MatchedRule

Parameters

ruleName
String

Name of the matched network security rule.

action
String

The network traffic is allowed or denied. Possible values are 'Allow' and 'Deny'.

Returns

A new MatchedRule instance for mocking.

Applies to