Platforms to show: All Mac Windows Linux Cross-Platform
Back to TXTRecordMBS class.
TXTRecordMBS.ContainsKey(txtRecord as string, key as string) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Network | MBS Network Plugin | 10.1 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
txtRecord: The txt record to search in as a string.
key: An ASCII string containing the key name.
Returns true if the TXT Record contains the specified key. Otherwise, it returns false.
See also:
TXTRecordMBS.Count(txtRecord as string) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Network | MBS Network Plugin | 10.1 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
See also:
TXTRecordMBS.KeyAtIndex(txtRecord as string, index as Integer) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Network | MBS Network Plugin | 10.1 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
txtRecord: The txt record to search in as a string.
index: the index you want in the range from zero to GetCount()-1.
It's also possible to iterate through keys in a TXT record by simply calling KeyAtIndex() repeatedly, beginning with index zero and increasing until lasterror is set to kErrorInvalid.
See also:
TXTRecordMBS.Value(txtRecord as string, key as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Network | MBS Network Plugin | 10.1 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
txtRecord: Pointer to the received TXT Record bytes.
key: The ASCII string containing the key name.
Returns an empty string if the key does not exist in this TXT record, or exists with no value (to differentiate between these two cases use ContainsKey()).
See also:
TXTRecordMBS.ValueAtIndex(txtRecord as string, index as Integer) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Network | MBS Network Plugin | 10.1 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
txtRecord: The txt record to search in as a string.
index: the index you want in the range from zero to GetCount()-1.
It's also possible to iterate through values in a TXT record by simply calling GetValueAtIndex() repeatedly, beginning with index zero and increasing until lasterror is set to kErrorInvalid.
See also:
The items on this page are in the following plugins: MBS Network Plugin.