WifiP2pDnsSdServiceInfo.NewInstance Method
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.
Create a Bonjour service information object.
[Android.Runtime.Register("newInstance", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Landroid/net/wifi/p2p/nsd/WifiP2pDnsSdServiceInfo;", "")]
public static Android.Net.Wifi.P2p.Nsd.WifiP2pDnsSdServiceInfo? NewInstance (string? instanceName, string? serviceType, System.Collections.Generic.IDictionary<string,string>? txtMap);
[<Android.Runtime.Register("newInstance", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Landroid/net/wifi/p2p/nsd/WifiP2pDnsSdServiceInfo;", "")>]
static member NewInstance : string * string * System.Collections.Generic.IDictionary<string, string> -> Android.Net.Wifi.P2p.Nsd.WifiP2pDnsSdServiceInfo
Parameters
- instanceName
- String
instance name.<br> e.g) "MyPrinter"
- serviceType
- String
service type.<br> e.g) "_ipp._tcp"
- txtMap
- IDictionary<String,String>
TXT record with key/value pair in a map confirming to format defined at http://files.dns-sd.org/draft-cheshire-dnsext-dns-sd.txt
Returns
Bonjour service information object
- Attributes
Remarks
Create a Bonjour service information object.
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.