Share via


WiFiDirectAdvertisementPublisher Class

Definition

An object to publish Wi-Fi Direct advertisements.

public ref class WiFiDirectAdvertisementPublisher sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class WiFiDirectAdvertisementPublisher final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class WiFiDirectAdvertisementPublisher final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class WiFiDirectAdvertisementPublisher
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class WiFiDirectAdvertisementPublisher
function WiFiDirectAdvertisementPublisher()
Public NotInheritable Class WiFiDirectAdvertisementPublisher
Inheritance
Object Platform::Object IInspectable WiFiDirectAdvertisementPublisher
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

Windows 10, version 1607, supports Mobile Hotspot, an enhanced version of the mobile broadband tethering feature. If Mobile Hotspot is running, the functionality of this class is not supported. It is likely to stop working.

The Mobile Hotspot and Wi-Fi Direct technology cannot run at the same time. Mobile Hotspot takes precedence over all Wi-Fi Direct scenarios.

Constructors

WiFiDirectAdvertisementPublisher()

Creates a new WiFiDirectAdvertisementPublisher object.

Properties

Advertisement

Gets the Wi-Fi Direct advertisement to publish.

Status

Gets the current status of the WiFiDirectAdvertisementPublisher.

Methods

Start()

Starts the Wi-Fi Direct advertisement.

Stop()

Stops the Wi-Fi Direct advertisement.

Events

StatusChanged

Notification that the status of the WiFiDirectAdvertisementPublisher has changed.

Applies to