Table of Contents

Class RecordAttribute

Namespace
Ubiety.Dns.Core.Common
Assembly
Ubiety.Dns.Core.dll

Represents an attribute that is used to associate a DNS record type with a specific field.

[AttributeUsage(AttributeTargets.Field)]
public class RecordAttribute : Attribute
Inheritance
RecordAttribute
Inherited Members

Examples

This class is used internally to dynamically instantiate record types for DNS parsing.

Remarks

This attribute is applied to fields of an enumeration to define the mapping between a DNS record identifier and the corresponding implementation type of the DNS record.

Constructors

RecordAttribute(Type)

Represents an attribute that is used to associate a DNS record type with a specific field.

public RecordAttribute(Type record)

Parameters

record Type

Examples

This class is used internally to dynamically instantiate record types for DNS parsing.

Remarks

This attribute is applied to fields of an enumeration to define the mapping between a DNS record identifier and the corresponding implementation type of the DNS record.

Properties

RecordType

Gets the record type.

public Type RecordType { get; }

Property Value

Type