共用方式為


FirewallPolicyRule Class

Definition

Properties of a rule. Please note FirewallPolicyRule is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ApplicationRule, NatRule and NetworkRule.

[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.Network.Models.UnknownFirewallPolicyRule))]
public abstract class FirewallPolicyRule : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Network.Models.FirewallPolicyRule>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Network.Models.FirewallPolicyRule>
public abstract class FirewallPolicyRule
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.Network.Models.UnknownFirewallPolicyRule))>]
type FirewallPolicyRule = class
    interface IJsonModel<FirewallPolicyRule>
    interface IPersistableModel<FirewallPolicyRule>
type FirewallPolicyRule = class
Public MustInherit Class FirewallPolicyRule
Implements IJsonModel(Of FirewallPolicyRule), IPersistableModel(Of FirewallPolicyRule)
Public MustInherit Class FirewallPolicyRule
Inheritance
FirewallPolicyRule
Derived
Attributes
Implements

Constructors

FirewallPolicyRule()

Initializes a new instance of FirewallPolicyRule.

Properties

Description

Description of the rule.

Name

Name of the rule.

Explicit Interface Implementations

IJsonModel<FirewallPolicyRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<FirewallPolicyRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<FirewallPolicyRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<FirewallPolicyRule>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<FirewallPolicyRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to