Class RecordSet
Represents a set records.
Assembly: PowerDns.Client.dll
Syntax
public class RecordSet : Object
Constructors
RecordSet()
Declaration
RecordSet(CanonicalName, TimeSpan, Record[])
Declaration
public RecordSet(CanonicalName name, TimeSpan ttl, params Record[] records)
Parameters
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
Name
Name for record set (e.g. “www.example.com.”)
Declaration
public CanonicalName Name { get; set; }
Property Value
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
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
Declaration
public RecordType Type { get; set; }
Property Value
Methods
Equals(RecordSet)
Declaration
public bool Equals(RecordSet other)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Implements