Dela via


WiFiDirectAdvertisement Class

Definition

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
Object Platform::Object IInspectable WiFiDirectAdvertisement
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.

Applies to

See also