NsdServiceInfo.Subtypes Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns subtypes of this service instance. -or- Sets the subtypes to be advertised for this service instance.
public System.Collections.Generic.ICollection<string> Subtypes { [Android.Runtime.Register("getSubtypes", "()Ljava/util/Set;", "", ApiSince=35)] get; [Android.Runtime.Register("setSubtypes", "(Ljava/util/Set;)V", "", ApiSince=35)] set; }
[<get: Android.Runtime.Register("getSubtypes", "()Ljava/util/Set;", "", ApiSince=35)>]
[<set: Android.Runtime.Register("setSubtypes", "(Ljava/util/Set;)V", "", ApiSince=35)>]
member this.Subtypes : System.Collections.Generic.ICollection<string> with get, set
Property Value
- Attributes
Remarks
Property getter documentation:
Returns subtypes of this service instance.
When this object is returned by the service discovery/browse APIs (etc. NsdManager.DiscoveryListener
), the return value may or may not include the subtypes of this service.
Java documentation for android.net.nsd.NsdServiceInfo.getSubtypes()
.
Property setter documentation:
Sets the subtypes to be advertised for this service instance.
The elements in subtypes
should be the subtype identifiers which have the trailing "._sub" removed. For example, the subtype should be "_printer" for "_printer._sub._http._tcp.local".
Only one subtype will be registered if multiple elements of subtypes
have the same case-insensitive value.
Java documentation for android.net.nsd.NsdServiceInfo.setSubtypes(java.util.Set<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.