コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DnsQuestion"/> class.
 /// </summary>
 /// <param name="query">The query.</param>
 /// <param name="questionType">Type of the question.</param>
 /// <param name="questionClass">The question class.</param>
 /// <exception cref="ArgumentNullException">If <paramref name="query"/> is null.</exception>
 public DnsQuestion(string query, PseudoResourceRecordType questionType, QueryClass questionClass)
     : this(DnsString.Parse(query), questionType, questionClass)
 {
 }
コード例 #2
0
ファイル: DnsQuestion.cs プロジェクト: zhouzu/DnsClient.NET
 /// <summary>
 /// Initializes a new instance of the <see cref="DnsQuestion"/> class.
 /// </summary>
 /// <param name="query">The query.</param>
 /// <param name="questionType">Type of the question.</param>
 /// <param name="questionClass">The question class.</param>
 /// <exception cref="ArgumentNullException">If <paramref name="query"/> is null.</exception>
 public DnsQuestion(string query, QueryType questionType, QueryClass questionClass = QueryClass.IN)
     : this(DnsString.Parse(query), questionType, questionClass)
 {
 }