Android.Net.Nsd.NsdServiceInfo.SetAttribute Method
Add a service attribute as a key/value pair.

Syntax

[Android.Runtime.Register("setAttribute", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public void SetAttribute (string key, string value)

Parameters

key
Documentation for this section has not yet been entered.
value
Documentation for this section has not yet been entered.

Remarks

Add a service attribute as a key/value pair.

Service attributes are included as DNS-SD TXT record pairs.

The key must be US-ASCII printable characters, excluding the '=' character. Values may be UTF-8 strings or null. The total length of key + value must be less than 255 bytes.

Keys should be short, ideally no more than 9 characters, and unique per instance of Android.Net.Nsd.NsdServiceInfo. Calling NsdServiceInfo.SetAttribute(string, System.String) twice with the same key will overwrite first value.

[Android Documentation]

Requirements

Namespace: Android.Net.Nsd
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16