启动 Windows 设置应用Launch the Windows Settings app

重要的 APIImportant APIs

了解如何启动 Windows"设置"应用。Learn how to launch the Windows Settings app. 本主题介绍 ms-settings: URI 方案。This topic describes the ms-settings: URI scheme. 使用此 URI 方案将 Windows 设置应用启动到特定设置页面。Use this URI scheme to launch the Windows Settings app to specific settings pages.

启动为设置应用是编写隐私感知应用的重要组成部分。Launching to the Settings app is an important part of writing a privacy-aware app. 如果你的应用无法访问敏感资源,我们建议为用户提供到该资源的隐私设置的方便链接。If your app can't access a sensitive resource, we recommend providing the user a convenient link to the privacy settings for that resource. 有关详细信息,请参阅隐私感知应用指南For more info, see Guidelines for privacy-aware apps.

如何启动“设置”应用How to launch the Settings app

若要启动 "设置" 应用,请使用 ms-settings: URI 方案,如以下示例中所示。To launch the Settings app, use the ms-settings: URI scheme as shown in the following examples.

在此示例中,超链接 XAML 控件用于使用 ms-settings:privacy-microphone URI 启动麦克风的隐私设置页面。In this example, a Hyperlink XAML control is used to launch the privacy settings page for the microphone using the ms-settings:privacy-microphone URI.

<!--Set Visibility to Visible when access to the microphone is denied -->
<TextBlock x:Name="LocationDisabledMessage" FontStyle="Italic"
                 Visibility="Collapsed" Margin="0,15,0,0" TextWrapping="Wrap" >
          <Run Text="This app is not able to access the microphone. Go to " />
              <Hyperlink NavigateUri="ms-settings:privacy-microphone">
                  <Run Text="Settings" />
              </Hyperlink>
          <Run Text=" to check the microphone privacy settings."/>
</TextBlock>

此外,你的应用可以调用 LaunchUriAsync 方法来启动设置应用。Alternatively, your app can call the LaunchUriAsync method to launch the Settings app. 此示例演示如何使用 ms-settings:privacy-webcam URI 启动到相机的隐私设置页面。This example shows how to launch to the privacy settings page for the camera using the ms-settings:privacy-webcam URI.

bool result = await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings:privacy-webcam"));
bool result = co_await Windows::System::Launcher::LaunchUriAsync(Windows::Foundation::Uri(L"ms-settings:privacy-webcam"));

上述代码会启动相机的隐私设置页面:The code above launches the privacy settings page for the camera:

相机隐私设置。

有关启动 URI 的详细信息,请参阅启动 URI 的默认应用For more info about launching URIs, see Launch the default app for a URI.

ms-settings: URI 方案引用ms-settings: URI scheme reference

使用以下 URI 以打开“设置”应用的各个页面。Use the following URIs to open various pages of the Settings app.

请注意,设置页面是否可用因 Windows SKU 而异。Note that whether a settings page is available varies by Windows SKU. 并非 Windows 10 桌面版中所有可用的设置在 Windows 10 移动版上也都可用,反之亦然。Not all settings page available on Windows 10 for desktop are available on Windows 10 Mobile, and vice-versa. 备注列中还记录了使页面可用所必须满足的附加要求。The notes column also captures additional requirements that must be met for a page to be available.

帐户Accounts

“设置”页Settings page URIURI
访问工作单位或学校Access work or school ms-settings:workplacems-settings:workplace
电子邮件和应用帐户Email & app accounts ms-settings:emailandaccountsms-settings:emailandaccounts
家人和其他人Family & other people ms-settings:otherusersms-settings:otherusers
设置展台Set up a kiosk ms-设置: assignedaccessms-settings:assignedaccess
登录选项Sign-in options ms-settings:signinoptionsms-settings:signinoptions
ms-settings:signinoptions-dynamiclockms-settings:signinoptions-dynamiclock
同步设置Sync your settings ms-settings:syncms-settings:sync
Windows Hello 设置Windows Hello setup ms-settings:signinoptions-launchfaceenrollmentms-settings:signinoptions-launchfaceenrollment
ms-settings:signinoptions-launchfingerprintenrollmentms-settings:signinoptions-launchfingerprintenrollment
你的信息Your info ms-settings:yourinfoms-settings:yourinfo

应用Apps

“设置”页Settings page URIURI
应用和功能Apps & Features ms-settings:appsfeaturesms-settings:appsfeatures
应用功能App features ms-settings:appsfeatures-app(应用的重置、管理加载项和可下载内容等操作)ms-settings:appsfeatures-app (Reset, manage add-on & downloadable content, etc. for the app)
网站应用Apps for websites ms-settings:appsforwebsitesms-settings:appsforwebsites
默认应用Default apps ms-settings:defaultappsms-settings:defaultapps
管理可选功能Manage optional features ms-settings:optionalfeaturesms-settings:optionalfeatures
离线地图Offline Maps ms-settings:mapsms-settings:maps
ms-settings: map-downloadmaps (下载地图)ms-settings:maps-downloadmaps (Download maps)
启动应用Startup apps ms-settings:startupappsms-settings:startupapps
视频播放Video playback ms-settings:videoplaybackms-settings:videoplayback

CortanaCortana

“设置”页Settings page URIURI
跨设备的 CortanaCortana across my devices ms-settings:cortana-notificationsms-settings:cortana-notifications
更多详细信息More details ms-settings:cortana-moredetailsms-settings:cortana-moredetails
权限 & 历史记录Permissions & History ms-settings:cortana-permissionsms-settings:cortana-permissions
搜索窗口Searching Windows ms-settings: cortana-windowssearchms-settings:cortana-windowssearch
与 Cortana 交谈Talk to Cortana ms-settings:cortana-languagems-settings:cortana-language
ms-设置: cortanams-settings:cortana
ms-settings: cortana-talktocortanams-settings:cortana-talktocortana

备注

如果计算机设置为当前未提供 Cortana 或 Cortana 已禁用的区域,则桌面上的此设置部分将称为 "搜索"。This Settings section on desktop will be called Search when the PC is set to regions where Cortana is not currently available or Cortana has been disabled. 在这种情况下,将不会列出 cortana 特定页面(在我的设备上 Cortana,并与 Cortana 通信)。Cortana-specific pages (Cortana across my devices, and Talk to Cortana) will not be listed in this case.

设备Devices

“设置”页Settings page URIURI
自动播放AutoPlay ms-settings:autoplayms-settings:autoplay
BluetoothBluetooth ms-settings:bluetoothms-settings:bluetooth
连接的设备Connected Devices ms-settings:connecteddevicesms-settings:connecteddevices
默认相机Default camera ms-设置:照相机(在 Windows 10 中已弃用,版本1809及更高版本ms-settings:camera (Deprecated in Windows 10, version 1809 and later)
鼠标和触摸板Mouse & touchpad ms-settings:mousetouchpad(仅具有触摸板的设备可使用触摸板设置)ms-settings:mousetouchpad (touchpad settings only available on devices that have a touchpad)
触控笔和 Windows InkPen & Windows Ink ms-settings:penms-settings:pen
打印机和扫描仪Printers & scanners ms-settings:printersms-settings:printers
触摸板Touchpad ms-settings:devices-touchpad(仅在存在触摸板硬件时可用)ms-settings:devices-touchpad (only available if touchpad hardware is present)
TypingTyping ms-settings:typingms-settings:typing
USBUSB ms-settings:usbms-settings:usb
滚轮Wheel ms-settings:wheel(仅在“拨号”配对成功后可用)ms-settings:wheel (only available if Dial is paired)
你的手机Your phone ms-settings:mobile-devicesms-settings:mobile-devices

轻松访问Ease of Access

“设置”页Settings page URIURI
音频Audio ms-settings:easeofaccess-audioms-settings:easeofaccess-audio
隐藏式字幕Closed captions ms-settings:easeofaccess-closedcaptioningms-settings:easeofaccess-closedcaptioning
颜色筛选器Color filters ms-settings: easeofaccess-colorfilterms-settings:easeofaccess-colorfilter
光标和指针大小Cursor & pointer size ms-settings: easeofaccess-cursorandpointersizems-settings:easeofaccess-cursorandpointersize
显示Display ms-settings:easeofaccess-displayms-settings:easeofaccess-display
目视控制Eye control ms-settings:easeofaccess-eyecontrolms-settings:easeofaccess-eyecontrol
字体Fonts ms-settings:fontsms-settings:fonts
高对比度High contrast ms-settings:easeofaccess-highcontrastms-settings:easeofaccess-highcontrast
键盘Keyboard ms-settings:easeofaccess-keyboardms-settings:easeofaccess-keyboard
放大镜Magnifier ms-settings:easeofaccess-magnifierms-settings:easeofaccess-magnifier
鼠标Mouse ms-settings:easeofaccess-mousems-settings:easeofaccess-mouse
讲述人Narrator ms-settings:easeofaccess-narratorms-settings:easeofaccess-narrator
其他选项Other options ms-settings: easeofaccess-otheroptions (在 Windows 10 版本1809及更高版本中已弃用ms-settings:easeofaccess-otheroptions (Deprecated in Windows 10, version 1809 and later)
语音Speech ms-settings:easeofaccess-speechrecognitionms-settings:easeofaccess-speechrecognition

附加信息Extras

“设置”页Settings page URIURI
附加信息Extras ms 设置:附加(仅在安装了 "设置应用" 时可用,例如,由第三方提供)ms-settings:extras (only available if "settings apps" are installed, for example, by a 3rd party)

游戏Gaming

“设置”页Settings page URIURI
广播Broadcasting ms-settings:gaming-broadcastingms-settings:gaming-broadcasting
游戏栏Game bar ms-settings:gaming-gamebarms-settings:gaming-gamebar
游戏 DVRGame DVR ms-settings:gaming-gamedvrms-settings:gaming-gamedvr
游戏模式Game Mode ms-settings:gaming-gamemodems-settings:gaming-gamemode
全屏玩游戏Playing a game full screen ms-settings:quietmomentsgamems-settings:quietmomentsgame
TruePlayTruePlay ms-设置:游戏-trueplay (在 Windows 10 版本1809及更高版本中已弃用ms-settings:gaming-trueplay (Deprecated in Windows 10, version 1809 and later)
Xbox 网络Xbox Networking ms-settings:gaming-xboxnetworkingms-settings:gaming-xboxnetworking

主页Home page

“设置”页Settings page URIURI
“设置”主页Settings home page ms-settings:ms-settings:

混合现实Mixed reality

备注

仅当安装了混合现实门户应用时,这些设置才可用。These settings are only available if the Mixed Reality Portal app is installed.

“设置”页Settings page URIURI
音频和语音Audio and speech ms-settings:holographic-audioms-settings:holographic-audio
环境Environment ms 设置:隐私-全息环境ms-settings:privacy-holographic-environment
耳机显示Headset display ms-设置:全息耳机ms-settings:holographic-headset
卸载Uninstall ms-设置:全息版-管理ms-settings:holographic-management

网络和 InternetNetwork & internet

“设置”页Settings page URIURI
飞行模式Airplane mode ms-settings:network-airplanemodems-settings:network-airplanemode
ms-settings:proximityms-settings:proximity
手机网络和 SIM 卡Cellular & SIM ms-settings:network-cellularms-settings:network-cellular
数据用途Data usage ms-settings:datausagems-settings:datausage
拨号Dial-up ms-settings:network-dialupms-settings:network-dialup
DirectAccessDirectAccess ms-settings:network-directaccess(仅在启用 DirectAccess 后可用)ms-settings:network-directaccess (only available if DirectAccess is enabled)
以太网Ethernet ms-settings:network-ethernetms-settings:network-ethernet
管理已知网络Manage known networks ms-settings:network-wifisettingsms-settings:network-wifisettings
移动热点Mobile hotspot ms-settings:network-mobilehotspotms-settings:network-mobilehotspot
NFCNFC ms-settings:nfctransactionsms-settings:nfctransactions
代理Proxy ms-settings:network-proxyms-settings:network-proxy
状态Status ms-settings:network-statusms-settings:network-status
ms-设置:网络ms-settings:network
VPNVPN ms-settings:network-vpnms-settings:network-vpn
WLANWi-Fi ms-settings:network-wifi(仅当设备具有 WLAN 适配器时可用)ms-settings:network-wifi (only available if the device has a wifi adapter)
WLAN 呼叫Wi-Fi Calling ms-settings:network-wificalling(仅在启用 WLAN 呼叫后可用)ms-settings:network-wificalling (only available if Wi-Fi calling is enabled)

个性化设置Personalization

“设置”页Settings page URIURI
背景Background ms-settings:personalization-backgroundms-settings:personalization-background
选择哪些文件夹显示在“开始”菜单上Choose which folders appear on Start ms-settings:personalization-start-placesms-settings:personalization-start-places
颜色Colors ms-settings:personalization-colorsms-settings:personalization-colors
ms-设置:颜色ms-settings:colors
概览Glance ms-设置:个性化浏览(在 Windows 10 中已弃用,版本1809及更高版本ms-settings:personalization-glance (Deprecated in Windows 10, version 1809 and later)
锁屏界面Lock screen ms-settings:lockscreenms-settings:lockscreen
导航栏Navigation bar ms 设置:个性化设置-导航栏(在 Windows 10 中已弃用,版本1809及更高版本ms-settings:personalization-navbar (Deprecated in Windows 10, version 1809 and later)
个性化(类别)Personalization (category) ms-settings:personalizationms-settings:personalization
开始Start ms-settings:personalization-startms-settings:personalization-start
任务栏Taskbar ms-settings:taskbarms-settings:taskbar
主题Themes ms-settings:themesms-settings:themes

电话Phone

“设置”页Settings page URIURI
你的手机Your phone ms-settings:mobile-devicesms-settings:mobile-devices
ms-设置:移动设备-addphonems-settings:mobile-devices-addphone
ms 设置:移动设备-addphone-direct (打开手机应用)ms-settings:mobile-devices-addphone-direct (Opens Your Phone app)

隐私Privacy

“设置”页Settings page URIURI
外部设备应用Accessory apps ms-settings: accessoryapps (在 Windows 10 版本1809及更高版本中已弃用ms-settings:privacy-accessoryapps (Deprecated in Windows 10, version 1809 and later)
帐户信息Account info ms-settings:privacy-accountinfoms-settings:privacy-accountinfo
活动历史记录Activity history ms-settings:privacy-activityhistoryms-settings:privacy-activityhistory
广告 IDAdvertising ID ms-settings: advertisingid (在 Windows 10 版本1809及更高版本中已弃用ms-settings:privacy-advertisingid (Deprecated in Windows 10, version 1809 and later)
应用诊断App diagnostics ms-settings:privacy-appdiagnosticsms-settings:privacy-appdiagnostics
自动文件下载Automatic file downloads ms-settings:privacy-automaticfiledownloadsms-settings:privacy-automaticfiledownloads
后台应用Background Apps ms-settings:privacy-backgroundappsms-settings:privacy-backgroundapps
日历Calendar ms-settings:privacy-calendarms-settings:privacy-calendar
呼叫历史记录Call history ms-settings:privacy-callhistoryms-settings:privacy-callhistory
照相机Camera ms-settings:privacy-webcamms-settings:privacy-webcam
联系人Contacts ms-settings:privacy-contactsms-settings:privacy-contacts
文档Documents ms-settings:privacy-documentsms-settings:privacy-documents
电子邮件Email ms-settings:privacy-emailms-settings:privacy-email
眼球跟踪器Eye tracker ms-settings:privacy-eyetracker(需要眼球跟踪器硬件)ms-settings:privacy-eyetracker (requires eyetracker hardware)
反馈和诊断Feedback & diagnostics ms-settings:privacy-feedbackms-settings:privacy-feedback
文件系统File system ms-settings:privacy-broadfilesystemaccessms-settings:privacy-broadfilesystemaccess
常规General ms 设置:隐私或 ms 设置:隐私-常规ms-settings:privacy or ms-settings:privacy-general
墨迹 & 键入Inking & typing ms-settings:privacy-speechtypingms-settings:privacy-speechtyping
位置Location ms-settings:privacy-locationms-settings:privacy-location
消息传递Messaging ms-settings:privacy-messagingms-settings:privacy-messaging
麦克风Microphone ms-settings:privacy-microphonems-settings:privacy-microphone
移动Motion ms-settings:privacy-motionms-settings:privacy-motion
通知Notifications ms-settings:privacy-notificationsms-settings:privacy-notifications
其他设备Other devices ms-settings:privacy-customdevicesms-settings:privacy-customdevices
电话呼叫Phone calls ms 设置:隐私-phonecallsms-settings:privacy-phonecalls
图片Pictures ms-settings:privacy-picturesms-settings:privacy-pictures
无线电收发器Radios ms-settings:privacy-radiosms-settings:privacy-radios
语音Speech ms 设置:隐私-语音ms-settings:privacy-speech
任务Tasks ms-settings:privacy-tasksms-settings:privacy-tasks
视频Videos ms-settings:privacy-videosms-settings:privacy-videos
语音激活Voice activation ms 设置:隐私-voiceactivationms-settings:privacy-voiceactivation

Surface HubSurface Hub

“设置”页Settings page URIURI
帐户Accounts ms-settings:surfacehub-accountsms-settings:surfacehub-accounts
会话清理Session cleanup ms-settings:surfacehub-sessioncleanupms-settings:surfacehub-sessioncleanup
团队会议Team Conferencing ms-settings:surfacehub-callingms-settings:surfacehub-calling
团队设备管理Team device management ms-settings:surfacehub-devicemanagenentms-settings:surfacehub-devicemanagenent
欢迎屏幕Welcome screen ms-settings:surfacehub-welcomems-settings:surfacehub-welcome

SystemSystem

“设置”页Settings page URIURI
关于About ms-settings:aboutms-settings:about
高级显示设置Advanced display settings ms-settings:display-advanced(仅适用于支持高级显示选项的设备)ms-settings:display-advanced (only available on devices that support advanced display options)
应用卷和设备首选项App volume and device preferences ms-设置:应用-卷(添加到 Windows 10,版本 1903ms-settings:apps-volume (Added in Windows 10, version 1903)
节电模式Battery Saver ms-settings:batterysaver(仅在具有电池的设备[如平板电脑]上可用)ms-settings:batterysaver (only available on devices that have a battery, such as a tablet)
“节电模式”设置Battery Saver settings ms-settings:batterysaver-settings(仅在具有电池的设备[如平板电脑]上可用)ms-settings:batterysaver-settings (only available on devices that have a battery, such as a tablet)
电池使用Battery use ms-settings:batterysaver-usagedetails(仅在具有电池的设备[如平板电脑]上可用)ms-settings:batterysaver-usagedetails (only available on devices that have a battery, such as a tablet)
剪贴板Clipboard ms-设置:剪贴板ms-settings:clipboard
显示Display ms-settings:displayms-settings:display
默认保存位置Default Save Locations ms-settings:savelocationsms-settings:savelocations
显示Display ms-settings:screenrotationms-settings:screenrotation
复制我的屏幕Duplicating my display ms-settings:quietmomentspresentationms-settings:quietmomentspresentation
在这些时间内During these hours ms-settings:quietmomentsscheduledms-settings:quietmomentsscheduled
加密Encryption ms-settings:deviceencryptionms-settings:deviceencryption
专注助手Focus assist ms-settings:quiethoursms-settings:quiethours
ms-settings:quietmomentshomems-settings:quietmomentshome
图形设置Graphics Settings ms-settings:display-advancedgraphics(仅适用于支持高级图形选项的设备)ms-settings:display-advancedgraphics (only available on devices that support advanced graphics options)
消息传递Messaging ms-settings:messagingms-settings:messaging
多任务Multitasking ms-settings:multitaskingms-settings:multitasking
夜灯设置Night light settings ms-settings:nightlightms-settings:nightlight
电话Phone ms-settings:phone-defaultappsms-settings:phone-defaultapps
投影到这台电脑Projecting to this PC ms-settings:projectms-settings:project
共享体验Shared experiences ms-settings:crossdevicems-settings:crossdevice
平板模式Tablet mode ms-settings:tabletmodems-settings:tabletmode
任务栏Taskbar ms-settings:taskbarms-settings:taskbar
通知和操作Notifications & actions ms-settings:notificationsms-settings:notifications
远程桌面Remote Desktop ms-settings:remotedesktopms-settings:remotedesktop
电话Phone ms-设置: phone (在 Windows 10 中已弃用,版本1809及更高版本ms-settings:phone (Deprecated in Windows 10, version 1809 and later)
电源和睡眠Power & sleep ms-settings:powersleepms-settings:powersleep
声音Sound ms-设置:声音ms-settings:sound
存储Storage ms-settings:storagesensems-settings:storagesense
存储感知Storage Sense ms-settings:storagepoliciesms-settings:storagepolicies

时间和语言Time and language

“设置”页Settings page URIURI
日期和时间Date & time ms-settings:dateandtimems-settings:dateandtime
日本输入法设置Japan IME settings ms-settings:regionlanguage-jpnime(在安装了 Microsoft 日本输入法编辑器的情况下可用)ms-settings:regionlanguage-jpnime (available if the Microsoft Japan input method editor is installed)
区域Region ms-设置: regionformattingms-settings:regionformatting
语言Language ms-设置:键盘ms-settings:keyboard
ms-settings:regionlanguagems-settings:regionlanguage
ms-settings: regionlanguage-bpmfimems-settings:regionlanguage-bpmfime
ms-settings: regionlanguage-cangjieimems-settings:regionlanguage-cangjieime
ms-settings: regionlanguage-chsime-domainlexiconms-settings:regionlanguage-chsime-pinyin-domainlexicon
ms-settings: regionlanguage-chsime-keyconfigms-settings:regionlanguage-chsime-pinyin-keyconfig
ms-settings: regionlanguage-chsime-udpms-settings:regionlanguage-chsime-pinyin-udp
ms-settings: regionlanguage-chsime-五笔-udpms-settings:regionlanguage-chsime-wubi-udp
ms-settings: regionlanguage-quickimems-settings:regionlanguage-quickime
拼音输入法设置Pinyin IME settings ms-settings:regionlanguage-chsime-pinyin(在安装了 Microsoft 拼音输入法编辑器的情况下可用)ms-settings:regionlanguage-chsime-pinyin (available if the Microsoft Pinyin input method editor is installed)
语音Speech ms-settings:speechms-settings:speech
五笔输入法设置Wubi IME settings ms-settings:regionlanguage-chsime-wubi(在安装了 Microsoft 五笔输入法编辑器的情况下可用)ms-settings:regionlanguage-chsime-wubi (available if the Microsoft Wubi input method editor is installed)

更新和安全Update & security

“设置”页Settings page URIURI
激活Activation ms-settings:activationms-settings:activation
备份Backup ms-settings:backupms-settings:backup
传递优化Delivery Optimization ms-settings:delivery-optimizationms-settings:delivery-optimization
查找我的设备Find My Device ms-settings:findmydevicems-settings:findmydevice
面向开发人员For developers ms-settings:developersms-settings:developers
恢复Recovery ms-settings:recoveryms-settings:recovery
疑难解答Troubleshoot ms-settings:troubleshootms-settings:troubleshoot
Windows 安全性Windows Security ms-settings:windowsdefenderms-settings:windowsdefender
Windows 预览体验计划Windows Insider Program ms-settings:windowsinsider(仅当用户在 WIP 中注册时显示)ms-settings:windowsinsider (only present if user is enrolled in WIP)
ms-settings: windowsinsider-optinms-settings:windowsinsider-optin
Windows 更新Windows Update ms-settings:windowsupdatems-settings:windowsupdate
ms-settings:windowsupdate-actionms-settings:windowsupdate-action
Windows 更新 - 高级选项Windows Update-Advanced options ms-settings:windowsupdate-optionsms-settings:windowsupdate-options
Windows 更新 - 重启选项Windows Update-Restart options ms-settings:windowsupdate-restartoptionsms-settings:windowsupdate-restartoptions
Windows 更新 - 查看更新历史记录Windows Update-View update history ms-settings:windowsupdate-historyms-settings:windowsupdate-history

用户帐户User Accounts

“设置”页Settings page URIURI
设置Provisioning ms-settings:workplace-provisioning(仅在企业部署了预配包后可用)ms-settings:workplace-provisioning (only available if enterprise has deployed a provisioning package)
设置Provisioning ms-settings:workplace-provisioning(仅在移动设备和企业部署了预配包后可用)ms-settings:provisioning (only available on mobile and if the enterprise has deployed a provisioning package)
Windows AnywhereWindows Anywhere ms-settings:windowsanywhere(设备必须支持 Windows Anywhere)ms-settings:windowsanywhere (device must be Windows Anywhere-capable)