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 Direct 播发。

Status

获取 WiFiDirectAdvertisementPublisher 的当前状态。

方法

Start()

启动 Wi-Fi Direct 播发。

Stop()

停止 Wi-Fi Direct 播发。

事件

StatusChanged

通知: WiFiDirectAdvertisementPublisher 的状态已更改。

适用于