Domain Detective

API Reference

Class

KeyValueTxtRecord

Namespace DnsClientX
Assembly DnsClientX
Modifiers sealed

Represents a TXT record containing key/value tags.

Inheritance

  • Object
  • KeyValueTxtRecord

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

KeyValueTxtRecord 2 overloads
public KeyValueTxtRecord(IReadOnlyDictionary<String, String> tags) #

Initializes a new instance of the KeyValueTxtRecord class.

Parameters

tags DnsClientX.TagRecord[] requiredposition: 0
Tags parsed from the record.
KeyValueTxtRecord(System.Collections.Generic.IReadOnlyDictionary{System.String,System.String} tags) #

Initializes a new instance of the KeyValueTxtRecord class.

Parameters

tags System.Collections.Generic.IReadOnlyDictionary{System.String,System.String} required
Tags parsed from the record.

Methods

public String GetTagValue(String key) #
Returns: String

Gets a tag value by key.

Parameters

key System.String requiredposition: 0
The tag key to look up.

Returns

The tag value, or null if not found.

public static Boolean TryParse(String record, out KeyValueTxtRecord result) #
Returns: Boolean

Attempts to parse a key/value TXT record.

Parameters

record System.String requiredposition: 0
Raw TXT record.
result DnsClientX.KeyValueTxtRecord@ requiredposition: 1
Parsed record.

Returns

true if parsing succeeded.

Properties

public TagRecord[] Tags { get; } #

Gets the record tags.

public Int32 TagCount { get; } #

Gets the count of tags in this record.

public String TagSummary { get; } #

Gets a summary of all tags for display purposes.

{{ include "footer" }}