Version: 2021.1

EditorUserBuildSettings.windowsDevicePortalUsername

切换到手册
public static string windowsDevicePortalUsername ;

描述

在使用 Build and Run 时为要在其中部署和启动 UWP 应用程序的设备指定 Windows DevicePortal 用户名。

仅当已在目标设备中启用 WDP 身份验证时,才需使用此参数,否则可将其留空。
注意:此字符串不是 Windows 登录用户,而是 DevicePortal 特定的单独凭据。有关更多详细信息,请参阅 Microsoft DevicePortal 文档