WiFiDirectLegacySettings WiFiDirectLegacySettings WiFiDirectLegacySettings WiFiDirectLegacySettings Class

Definition

Settings governing "legacy" mode (non-Wi-Fi Direct connections to the access point being advertised.)

This access point allows devices that do not support Wi-Fi Direct to connect to a device that does support it, and to use the services offered by the Wi-Fi Direct device. The connection does not serve as a general-purpose Wi-Fi access point.

public : sealed class WiFiDirectLegacySettings : IWiFiDirectLegacySettingspublic sealed class WiFiDirectLegacySettings : IWiFiDirectLegacySettingsPublic NotInheritable Class WiFiDirectLegacySettings Implements IWiFiDirectLegacySettings// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Your code retrieves instances of this class through the WiFiDirectAdvertisement.LegacySettings property. It does not instantiate the class directly.

The SSID is initially set to a Wi-Fi Direct compatible random string beginning with ""DIRECT-"". Your code can change this value to a different SSID if you choose to do so.

The pass phrase is initialized to a random alphanumeric string. Your code can change this value to a different pass phrase if you choose to do so.

Properties

IsEnabled IsEnabled IsEnabled IsEnabled

Gets or sets a value specifying whether "legacy mode" is enabled. When enabled, this mode causes this device to act as a normal Wi-Fi access point, and is intended to support devices which do not support connection via Wi-Fi Direct.

public : PlatForm::Boolean IsEnabled { get; set; }public bool IsEnabled { get; set; }Public ReadWrite Property IsEnabled As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

When true, "legacy mode" is enabled.

Passphrase Passphrase Passphrase Passphrase

Gets or sets the pass phrase used by non-Wi-Fi Direct clients to connect to this access point in "legacy mode".

public : PasswordCredential Passphrase { get; set; }public PasswordCredential Passphrase { get; set; }Public ReadWrite Property Passphrase As PasswordCredential// You can use this property in JavaScript.
Value
PasswordCredential PasswordCredential PasswordCredential PasswordCredential

The pass phrase for the Wi-Fi network. This access point functions as a normal Wi-Fi access point, and is intended to support devices which do not support connection via Wi-Fi Direct.

Remarks

Windows 10 and Windows 10 Mobile can be configured to allow embedded mode, which allows a device to run a single app. If embedded mode is configured, the Passphrase value can be explicitly set to null to support Open/None Authentication. Not all Wi-Fi adapters may support this feature on Windows. For more information, see Embedded mode.

Ssid Ssid Ssid Ssid

Gets or sets the Service Set Identifier (SSID, or "access point ID").

public : PlatForm::String Ssid { get; set; }public string Ssid { get; set; }Public ReadWrite Property Ssid As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The SSID for the access point. This access point functions as a normal Wi-Fi access point, and is intended to support devices which do not support connection via Wi-Fi Direct.