语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

ArmNetworkModelFactory.MatchedRule(String, String) Method

Definition

Matched rule.

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