Share via


ServiceDeviceType 枚举

定义

指示可移植设备服务的类型。

public enum class ServiceDeviceType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.Portable.PortableDeviceContract, 65536)]
enum class ServiceDeviceType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.Portable.PortableDeviceContract), 65536)]
public enum ServiceDeviceType
var value = Windows.Devices.Portable.ServiceDeviceType.calendarService
Public Enum ServiceDeviceType
继承
ServiceDeviceType
属性

Windows 要求

设备系列
Windows Desktop Extension SDK (在 10.0.10240.0 中引入)
API contract
Windows.Devices.Portable.PortableDeviceContract (在 v1.0 中引入)

字段

CalendarService 0

提供日历信息的服务。

ContactsService 1

跟踪联系人的服务。

DeviceStatusService 2

设备状态服务。

NotesService 3

记笔记服务。

RingtonesService 4

为手机提供铃声的服务。

SmsService 5

短信服务 (短信) 短信服务。

TasksService 6

用于跟踪任务的服务。

注解

若要访问设备服务,必须在应用清单文件的 capabilities 节中声明设备服务。 有关表示设备服务的 GUID 的列表,请参阅 Windows.Devices.Portable

适用于