Language

NsdServiceInfo.Attributes プロパティ

定義

文字列キーを byte[] 値にマップして属性を取得します。

public System.Collections.Generic.IDictionary<string,byte[]>? Attributes { [Android.Runtime.Register("getAttributes", "()Ljava/util/Map;", "")] get; }
[<get: Android.Runtime.Register("getAttributes", "()Ljava/util/Map;", "")>]
member this.Attributes : System.Collections.Generic.IDictionary<string, byte[]>

プロパティ値

文字列キーとバイト配列値を持つサービスの DNS-SD TXT 属性。 値のない属性には、 null 値があります。 属性を変更するには、 SetAttribute(String, String) と RemoveAttribute(String) を使用します。

属性

注釈

文字列キーを byte[] 値にマップして属性を取得します。 属性マップは、解決されたサービスに対してのみ有効です。

返されたマップは変更できません。変更は、 #setAttribute と #removeAttributeを通じて行う必要があります。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象