你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Rule Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes remote addresses that is recommended to communicate with the Azure resource on some (Protocol, Port, Direction). All other remote addresses are recommended to be blocked
public class Rule
type Rule = class
Public Class Rule
- Inheritance
-
Rule
Constructors
Rule() |
Initializes a new instance of the Rule class. |
Rule(String, String, Nullable<Int32>, IList<String>, IList<String>) |
Initializes a new instance of the Rule class. |
Properties
DestinationPort |
Gets or sets the rule's destination port |
Direction |
Gets or sets the rule's direction Possible values include: 'Inbound', 'Outbound' |
IPAddresses |
Gets or sets the remote IP addresses that should be able to communicate with the Azure resource on the rule's destination port and protocol |
Name |
Gets or sets the name of the rule |
Protocols |
Gets or sets the rule's transport protocols |
Methods
Validate() |
Validate the object. |
Extension Methods
ConvertToPSType(Rule) |