共用方式為


DnsSecurityRuleAction Class

Definition

The action to take on DNS requests that match the DNS security rule.

public class DnsSecurityRuleAction : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.DnsResolver.Models.DnsSecurityRuleAction>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.DnsResolver.Models.DnsSecurityRuleAction>
type DnsSecurityRuleAction = class
    interface IJsonModel<DnsSecurityRuleAction>
    interface IPersistableModel<DnsSecurityRuleAction>
Public Class DnsSecurityRuleAction
Implements IJsonModel(Of DnsSecurityRuleAction), IPersistableModel(Of DnsSecurityRuleAction)
Inheritance
DnsSecurityRuleAction
Implements

Constructors

DnsSecurityRuleAction()

Initializes a new instance of DnsSecurityRuleAction.

Properties

ActionType

The type of action to take.

BlockResponseCode

The response code for block actions.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<DnsSecurityRuleAction>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<DnsSecurityRuleAction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DnsSecurityRuleAction>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DnsSecurityRuleAction>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<DnsSecurityRuleAction>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to