Class DnsResourceRecord
Base class for all resource records.
Inheritance
DnsResourceRecord
Inherited Members
Namespace: DnsClient.Protocol
Assembly: DnsClient.dll
Syntax
public abstract class DnsResourceRecord : ResourceRecordInfo
Constructors
| Improve this Doc View SourceDnsResourceRecord(ResourceRecordInfo)
Initializes a new instance of the DnsResourceRecord class.
Declaration
public DnsResourceRecord(ResourceRecordInfo info)
Parameters
Type | Name | Description |
---|---|---|
ResourceRecordInfo | info | The information. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | If |
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
| Improve this Doc View SourceToString(Int32)
Same as ToString
but offsets the DomainName
by offset
.
Set the offset to -32 for example to make it print nicely in consols.
Declaration
public virtual string ToString(int offset = 0)
Parameters
Type | Name | Description |
---|---|---|
Int32 | offset | The offset. |
Returns
Type | Description |
---|---|
String | A string representing this instance. |