Class ResourceRecordInfo
The type represents a DnsResourceRecord.
Inherited Members
Namespace: DnsClient.Protocol
Assembly: DnsClient.dll
Syntax
public class ResourceRecordInfo
Constructors
| Improve this Doc View SourceResourceRecordInfo(DnsString, ResourceRecordType, QueryClass, Int32, Int32)
Initializes a new instance of the ResourceRecordInfo class.
Declaration
public ResourceRecordInfo(DnsString domainName, ResourceRecordType recordType, QueryClass recordClass, int timeToLive, int rawDataLength)
Parameters
Type | Name | Description |
---|---|---|
DnsString | domainName | The DnsString used by the query. |
ResourceRecordType | recordType | Type of the record. |
QueryClass | recordClass | The record class. |
Int32 | timeToLive | The time to live. |
Int32 | rawDataLength | Length of the raw data. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | If |
ResourceRecordInfo(String, ResourceRecordType, QueryClass, Int32, Int32)
Initializes a new instance of the ResourceRecordInfo class.
Declaration
public ResourceRecordInfo(string domainName, ResourceRecordType recordType, QueryClass recordClass, int timeToLive, int rawDataLength)
Parameters
Type | Name | Description |
---|---|---|
String | domainName | The domain name used by the query. |
ResourceRecordType | recordType | Type of the record. |
QueryClass | recordClass | The record class. |
Int32 | timeToLive | The time to live. |
Int32 | rawDataLength | Length of the raw data. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | If |
Properties
| Improve this Doc View SourceDomainName
The domain name used to query.
Declaration
public DnsString DomainName { get; }
Property Value
Type | Description |
---|---|
DnsString |
InitialTimeToLive
Gets or sets the original time to live returned from the server.
Declaration
public int InitialTimeToLive { get; }
Property Value
Type | Description |
---|---|
Int32 |
RawDataLength
Gets the number of bytes for this resource record stored in RDATA
Declaration
public int RawDataLength { get; }
Property Value
Type | Description |
---|---|
Int32 |
RecordClass
Specifies type class of resource record, mostly IN but can be CS, CH or HS .
Declaration
public QueryClass RecordClass { get; }
Property Value
Type | Description |
---|---|
QueryClass |
RecordType
Specifies type of resource record.
Declaration
public ResourceRecordType RecordType { get; }
Property Value
Type | Description |
---|---|
ResourceRecordType |
TimeToLive
Gets the current time to live value for the record.
Declaration
public int TimeToLive { get; }
Property Value
Type | Description |
---|---|
Int32 |