API Reference
Class
KeyValueTxtRecord
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
- Method KeyValueTxtRecord.TryParse
Constructors
KeyValueTxtRecord 2 overloads
public KeyValueTxtRecord(IReadOnlyDictionary<String, String> tags) #Initializes a new instance of the KeyValueTxtRecord class.
Parameters
- tags DnsClientX.TagRecord[]
- 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}
- Tags parsed from the record.
Methods
public String GetTagValue(String key) #Returns:
StringGets a tag value by key.
Parameters
- key System.String
- 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:
BooleanAttempts to parse a key/value TXT record.
Parameters
- record System.String
- Raw TXT record.
- result DnsClientX.KeyValueTxtRecord@
- Parsed record.
Returns
true if parsing succeeded.