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
stringThe domain this question is about.
queryType
DnsResourceTypeThe Type of DNS Resource being queried.
queryClass
ushortThe class of Query this Question is about.
Properties
Domain
Gets the domain this question is about.
public string Domain { get; }
Property Value
QueryClass
Gets the class of Query this Question is about.
public ushort QueryClass { get; }
Property Value
QueryType
Gets the Type of DNS Resource being queried.
public DnsResourceType QueryType { get; }
Property Value
Methods
GetBytes()
Returns a byte[] representation of this Question.
public byte[] GetBytes()
Returns
- byte[]
A byte[] representation of this Question.