Udostępnij za pośrednictwem


NsdServiceInfo.SetAttribute(String, String) Method

Definition

Add a service attribute as a key/value pair.

[Android.Runtime.Register("setAttribute", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public void SetAttribute (string? key, string? value);
[<Android.Runtime.Register("setAttribute", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
member this.SetAttribute : string * string -> unit

Parameters

key
String
value
String
Attributes

Remarks

Java documentation for android.net.nsd.NsdServiceInfo.setAttribute(java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to