WiFiDirectAdvertisement Class
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.
Represents a Wi-Fi Direct advertisement and allows the app to control the listen state and custom information elements in the advertisement.
public ref class WiFiDirectAdvertisement sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class WiFiDirectAdvertisement final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class WiFiDirectAdvertisement
Public NotInheritable Class WiFiDirectAdvertisement
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Remarks
Version history
Windows version | SDK version | Value added |
---|---|---|
1511 | 10586 | SupportedConfigurationMethods |
Properties
InformationElements |
Information elements to advertise in the Wi-Fi Direct advertisement. |
IsAutonomousGroupOwnerEnabled |
Whether autonomous group owner will be enabled. |
LegacySettings |
Gets the settings object for "legacy" (non-Wi-Fi Direct) connections. |
ListenStateDiscoverability |
Gets or sets the listen state and whether the Wi-Fi Direct device is discoverable. |
SupportedConfigurationMethods |
Gets a device's supported configuration methods. When two devices are attempting to connect, their preferred pairing procedures and supported configuration methods are used to determine how pairing is accomplished. |