Table of Contents

Class Question

Namespace
Iot.Device.MulticastDns.Entities
Assembly
Iot.Device.MulticastDns.dll

A Multicast DNS message potentially contains Questions.

public class Question
Inheritance
Question

Constructors

Question(string, DnsResourceType, ushort)

Initializes a new instance of the Question class.

public Question(string domain, DnsResourceType queryType, ushort queryClass)

Parameters

domain string

The domain this question is about.

queryType DnsResourceType

The Type of DNS Resource being queried.

queryClass ushort

The class of Query this Question is about.

Properties

Domain

Gets the domain this question is about.

public string Domain { get; }

Property Value

string

QueryClass

Gets the class of Query this Question is about.

public ushort QueryClass { get; }

Property Value

ushort

QueryType

Gets the Type of DNS Resource being queried.

public DnsResourceType QueryType { get; }

Property Value

DnsResourceType

Methods

GetBytes()

Returns a byte[] representation of this Question.

public byte[] GetBytes()

Returns

byte[]

A byte[] representation of this Question.