共用方式為


WiFiDirectAdvertisementPublisher 類別

定義

要發佈 Wi-Fi Direct 廣告的物件。

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
繼承
Object Platform::Object IInspectable WiFiDirectAdvertisementPublisher
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

Windows 10 1607 版支援行動熱點,這是行動寬頻連線功能的增強版本。 如果行動熱點正在執行,則不支援此類別的功能。 它可能會停止運作。

行動熱點和 Wi-Fi 直接技術無法同時執行。 行動熱點優先于所有 Wi-Fi 直接案例。

建構函式

WiFiDirectAdvertisementPublisher()

建立新的 WiFiDirectAdvertisementPublisher 物件。

屬性

Advertisement

取得要發佈的 Wi-Fi 直接公告。

Status

取得 WiFiDirectAdvertisementPublisher的目前狀態。

方法

Start()

啟動 Wi-Fi 直接公告。

Stop()

停止 Wi-Fi 直接公告。

事件

StatusChanged

通知,WiFiDirectAdvertisementPublisher的狀態已變更。

適用於