Show / Hide Table of Contents

Class RecordSet

Represents a set records.

Inheritance
Object
RecordSet
AAAARecordSet
ARecordSet
CNameRecordSet
Implements
IEquatable<RecordSet>
Namespace: PowerDns.Client.Models
Assembly: PowerDns.Client.dll
Syntax
public class RecordSet : Object

Constructors

RecordSet()

Declaration
public RecordSet()

RecordSet(CanonicalName, TimeSpan, Record[])

Declaration
public RecordSet(CanonicalName name, TimeSpan ttl, params Record[] records)
Parameters
Type Name Description
CanonicalName name
TimeSpan ttl
Record[] records

Properties

ChangeType

MUST be added when updating the RecordSet. With Delete, all existing Records matching name and type will be deleted, including all comments. With Replace: when records is present, all existing Records matching name and type will be deleted, and then new records given in records will be created. If no records are left, any existing comments will be deleted as well. When comments is present, all existing comments for the Records matching name and type will be deleted, and then new comments given in comments will be created.

Declaration
public Nullable<ChangeType> ChangeType { get; set; }
Property Value
Type Description
Nullable<ChangeType>

Name

Name for record set (e.g. “www.example.com.”)

Declaration
public CanonicalName Name { get; set; }
Property Value
Type Description
CanonicalName

Records

All records in this RecordSet. When updating Records, this is the list of new records (replacing the old ones). Must be empty when ChangeType is set to "Delete". An empty list results in deletion of all records.

Declaration
public List<Record> Records { get; set; }
Property Value
Type Description
List<Record>

Ttl

DNS TTL of the records, in seconds. MUST NOT be included when ChangeType is set to "Delete".

Declaration
public uint Ttl { get; set; }
Property Value
Type Description
UInt32

Type

Type of this record.

Declaration
public RecordType Type { get; set; }
Property Value
Type Description
RecordType

Methods

Equals(RecordSet)

Declaration
public bool Equals(RecordSet other)
Parameters
Type Name Description
RecordSet other
Returns
Type Description
Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32

Implements

System.IEquatable<T>
In This Article
Back to top Copyright Bastian Eicher