WiFiDirectServiceAdvertiser(String) Constructor
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.
public:
WiFiDirectServiceAdvertiser(Platform::String ^ serviceName);
WiFiDirectServiceAdvertiser(winrt::hstring const& serviceName);
public WiFiDirectServiceAdvertiser(string serviceName);
function WiFiDirectServiceAdvertiser(serviceName)
Public Sub New (serviceName As String)
Parameters
- serviceName
-
String
Platform::String
winrt::hstring
The name of the service to be advertised. Service names are UTF-8 strings no more than 255 characters long. It is recommended that names use reverse domain name notation, where the service owner's DNS name (such as "contoso.com") is reversed and used as the beginning of the service name (such as "com.contoso.serviceX"). This convention is intended to make it easy to choose unique service names. Service names that start with "org.wi-fi.wfds" are reserved for use by the Wi-Fi Alliance, and you may not use such names for your service.