尽管可以在 C# 或 C++ 桌面应用中使用大多数 Windows 运行时 (WinRT) API(请参阅 Windows 运行时(WinRT) 命名空间),但有两组主要的 WinRT API 不受桌面应用支持,或者存在限制:
- 依赖于用户界面 (UI) 功能的 API,这些功能仅在通用 Windows 平台 (UWP) 应用中可用。
- 需要程序包标识符的 API(请参阅需要程序包标识符的功能)。 此类 API 仅在使用 MSIX 打包的桌面应用中受支持。
本文提供了有关这两个 WinRT API 集的详细信息。 如果可能,本文建议使用替代 API 来实现与桌面应用中不受支持的 API 相同的功能。 大多数备用 API 在 WinUI 3 中或通过 Windows SDK 中提供的 WinRT COM 接口提供。
注释
使用.NET的应用可以使用本文中列出的某些 WinRT COM 接口提供的类实现。 与直接使用 WinRT COM 接口相比,这些类更易于使用。 有关可用类实现的详细信息,请参阅从 .NET 应用调用互操作 API。 请注意,这些类需要 .NET 6 SDK 或更高版本。
依赖于 UI 功能(仅限 UWP 使用)的 API
某些 WinRT API 专为 UWP 应用中的 UI 方案而设计。 由于线程模型和其他平台差异,这些 API 在桌面应用中不能正常运行。 桌面应用中不支持使用这些 API 和其他依赖于它们的 WinRT API。
主要不受支持的类
桌面应用中不支持以下 WinRT 类:
| Class | 替代 API |
|---|---|
| ApplicationView | None |
| CoreApplicationView | 请改用 WinUI 提供的 Window 类。 |
| CoreApplicationViewTitleBar | 使用 WinUI 提供的 Window.ExtendsContentIntoTitleBar 属性,而不是 ExtendViewIntoTitleBar 属性。 |
| CoreDispatcher | 请改用 WinUI 提供的 Microsoft.UI.Xaml.Window.DispatcherQueue 属性。 请注意,Windows.UI.Xaml.Window.Dispatcher 和 Windows.UI.Xaml.DependencyObject.Dispatcher 属性在桌面应用中会返回 null。 |
| CoreWindow | 另请参阅下面的实现 IInitializeWithWindow 的类部分。 使用 WinUI 提供的 InputKeyboardSource.GetKeyStateForCurrentThread 方法,而不是 GetKeyState 方法。 使用 WinUI 提供的 UIElement.ProtectedCursor 属性,而不是 PointerCursor 属性。 访问此属性需要具有 UIElement 的子类。 |
| UserActivity | 请改为使用 IUserActivitySourceHostInterop COM 接口(位于 useractivityinterop.h 中)。 |
有关桌面应用不支持的其他 WinRT API,请参阅本主题后面的不受支持的成员。
具有 XxxForCurrentView 方法的类
许多 WinRT 类都具有静态 GetForCurrentView 或 CreateForCurrentView 方法,例如 UIViewSettings.GetForCurrentView。 这些 XxxForCurrentView 方法对 ApplicationView 类型具有隐式依赖关系,桌面应用中不支持这种关系。 由于桌面应用中不支持 ApplicationView,因此也不支持 XxxForCurrentView 方法。 某些不受支持的 XxxForCurrentView 方法不仅会返回 null,还会引发异常。
注释
CoreInputView.GetForCurrentView 在桌面应用中受到支持,甚至在没有 CoreWindow 的情况下也可以使用。 可以使用此方法检索任何线程上的 CoreInputView 对象;如果该线程具有前台窗口,则该对象将生成事件。
桌面应用支持以下类;但要在桌面应用中检索其中某个类的实例,需使用不同于 GetForCurrentView 或 CreateForCurrentView 方法的机制。 对于将 COM 接口列为替代 API 的以下类,C# 开发人员也可以使用这些 WinRT COM 接口(请参阅从 .NET 应用调用互操作 API)。 此列表可能不是完整的列表。
以下类在桌面应用中不受支持,因为 API 不提供其 GetForCurrentView 或 CreateForCurrentView 方法的替代方法。 此列表可能不是完整的列表。
| Class | 替代 API |
|---|---|
| AppCapture | None |
| BrightnessOverride | None |
| ConnectedAnimationService | None |
| CoreInputView | None |
| CoreWindowResizeManager | None |
| DisplayEnhancementOverride | None |
| EdgeGesture | None |
| GazeInputSourcePreview | None |
| HdmiDisplayInformation | None |
| HolographicKeyboardPlacementOverridePreview | None |
| KeyboardDeliveryInterceptor | None |
| LockApplicationHost | None |
| MouseDevice | None |
| 指针可视化设置 | None |
| ProtectionPolicyManager | None |
| SearchPane | None |
| SettingsPane | None |
| SystemNavigationManager | None |
| SystemNavigationManagerPreview | None |
| WebAuthenticationBroker | 没有。 有关详细信息,请参阅 WebAuthenticationBroker.AuthenticateAsync 引发 COMException GitHub问题。 |
实现 IInitializeWithWindow 的类
某些选取器、弹出窗口、对话框和其他 Windows 运行时 (WinRT) 对象依赖于 CoreWindow;通常用于显示 UI。 即使 CoreWindow 在桌面应用中不受支持(请参阅上面的主要不受支持的类),但你仍可通过添加少量互操作代码在桌面应用中使用其中许多 WinRT 类。
有关详细信息(包括受影响类型的列表)和代码示例,请参阅显示依赖于 CoreWindow 的 WINRT UI 对象。
不支持的成员
本部分列出了(或在不可能提供完整列表时说明了)不可在桌面应用中使用的 WinRT 类的特定成员。 除非另有说明,否则桌面应用中支持除以下成员之外的其他类。
Events
除指定的事件外,桌面应用支持以下类。
| Class | 不支持的事件 |
|---|---|
| UISettings | 颜色值已更改 |
| 无障碍设置 | HighContrastChanged |
方法
除指定的方法外,桌面应用支持以下类。
| Class | 不受支持的方法 |
|---|---|
| 设备信息配对 | PairAsync |
使用 Request 命名模式的方法
桌面应用不支持采用 Request 命名模式的大多数方法,例如 AppCapability.RequestAccessAsync 和 StoreContext.RequestPurchaseAsync。 在内部,这些方法使用 Windows.UI.Popups 类。 该类要求线程具有 CoreWindow 对象,但桌面应用中不支持该对象。
使用 Request 命名模式的方法的完整列表非常长,本文未提供这些方法的完整列表。
需要包标识的 API
以下 WinRT 类需要程序包标识符(请参阅需要程序包标识符的功能)。 这些 API 仅在打包的桌面应用中受支持(即在运行时具有程序包标识符)。 此列表可能不是完整的列表。
Windows.ApplicationModel...
- Windows.ApplicationModel.DataTransfer.DataProviderHandler
- Windows.ApplicationModel.DataTransfer.DataRequest
- Windows.ApplicationModel.DataTransfer.DataRequestDeferral
- Windows.ApplicationModel.DataTransfer.DataRequestedEventArgs
- Windows.ApplicationModel.DataTransfer.DataTransferManager
- Windows.ApplicationModel.DataTransfer.SharedStorageAccessManager
- Windows.ApplicationModel.DataTransfer.TargetApplicationChosenEventArgs
- Windows.ApplicationModel.Resources.Core.NamedResource
- Windows.ApplicationModel.Resources.Core.ResourceCandidate
- Windows.ApplicationModel.Resources.Core.ResourceCandidateVectorView
- Windows.ApplicationModel.Resources.Core.ResourceContext
- Windows.ApplicationModel.Resources.Core.ResourceContextLanguagesVectorView
- Windows.ApplicationModel.Resources.Core.ResourceManager
- Windows.ApplicationModel.Resources.Core.ResourceMap
- Windows.ApplicationModel.Resources.Core.ResourceMapIterator
- Windows.ApplicationModel.Resources.Core.ResourceMapMapView
- Windows.ApplicationModel.Resources.Core.ResourceMapMapViewIterator
- Windows.ApplicationModel.Resources.Core.ResourceQualifier
- Windows.ApplicationModel.Resources.Core.ResourceQualifierMapView
- Windows.ApplicationModel.Resources.Core.ResourceQualifierObservableMap
- Windows.ApplicationModel.Resources.Core.ResourceQualifierVectorView
- Windows.ApplicationModel.Resources.ResourceLoader
Windows.Data
- Windows.Data.Pdf.PdfDocument
- Windows.Data.Pdf.PdfPage
- Windows.Data.Pdf.PdfPageDimensions
- Windows.Data.Pdf.PdfPageRenderOptions
- Windows.Data.Text.SelectableWordSegmentsTokenizingHandler
- Windows.Data.Text.SemanticTextQuery
- Windows.Data.Text.TextConversionGenerator
- Windows.Data.Text.TextPredictionGenerator
- Windows.Data.Text.TextReverseConversionGenerator
- Windows.Data.Text.WordSegmentsTokenizingHandler
- Windows.Data.Xml.Dom.DtdEntity
- Windows.Data.Xml.Dom.DtdNotation
- Windows.Data.Xml.Dom.XmlAttribute
- Windows.Data.Xml.Dom.XmlCDataSection
- Windows.Data.Xml.Dom.XmlComment
- Windows.Data.Xml.Dom.XmlDocument
- Windows.Data.Xml.Dom.XmlDocumentFragment
- Windows.Data.Xml.Dom.XmlDocumentType
- Windows.Data.Xml.Dom.XmlDomImplementation
- Windows.Data.Xml.Dom.XmlElement
- Windows.Data.Xml.Dom.XmlEntityReference
- Windows.Data.Xml.Dom.XmlLoadSettings
- Windows.Data.Xml.Dom.XmlNamedNodeMap
- Windows.Data.Xml.Dom.XmlNodeList
- Windows.Data.Xml.Dom.XmlProcessingInstruction
- Windows.Data.Xml.Dom.XmlText
- Windows.Data.Xml.Xsl.XsltProcessor
Windows.Devices...
- Windows.Devices.Input.KeyboardCapabilities
- Windows.Devices.Input.MouseCapabilities
- Windows.Devices.Input.MouseDevice
- Windows.Devices.Input.MouseEventArgs
- Windows.Devices.Input.PointerDevice
- Windows.Devices.Input.TouchCapabilities
- Windows.Devices.Lights.Lamp
- Windows.Devices.Lights.LampAvailabilityChangedEventArgs
- Windows.Devices.Perception.Provider.PerceptionStartFaceAuthenticationHandler
- Windows.Devices.Perception.Provider.PerceptionStopFaceAuthenticationHandler
- Windows.Devices.PointOfService.MagneticStripeReader
- Windows.Devices.PointOfService.MagneticStripeReaderAamvaCardDataReceivedEventArgs
- Windows.Devices.PointOfService.MagneticStripeReaderBankCardDataReceivedEventArgs
- Windows.Devices.PointOfService.MagneticStripeReaderCapabilities
- Windows.Devices.PointOfService.MagneticStripeReaderCardTypes(磁卡读取器卡类型)
- Windows.Devices.PointOfService.MagneticStripeReaderEncryptionAlgorithms
- Windows.Devices.PointOfService.MagneticStripeReaderErrorOccurredEventArgs
- Windows.Devices.PointOfService.MagneticStripeReaderReport
- Windows.Devices.PointOfService.MagneticStripeReaderStatusUpdatedEventArgs
- Windows.Devices.PointOfService.MagneticStripeReaderTrackData
- Windows.Devices.PointOfService.MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs
- Windows.Devices.Portable.ServiceDevice
- Windows.Devices.Portable.StorageDevice
- Windows.Devices.Printers.Print3DDevice
- Windows.Devices.Printers.PrintSchema
- Windows.Devices.SmartCards.SmartCard
- Windows.Devices.SmartCards.SmartCardConnection
- Windows.Devices.SmartCards.SmartCardReader
Windows.Foundation...
- Windows.Foundation.AsyncActionCompletedHandler
- Windows.Foundation.AsyncActionProgressHandler<TProgress>
- Windows.Foundation.AsyncActionWithProgressCompletedHandler<TProgress>
- Windows.Foundation.AsyncOperationCompletedHandler<TProgress>
- Windows.Foundation.Collections.VectorChangedEventHandler<T>
- Windows.Foundation.DeferralCompletedHandler
- Windows.Foundation.Diagnostics.FileLoggingSession
- Windows.Foundation.Diagnostics.LogFileGeneratedEventArgs
- Windows.Foundation.Diagnostics.LoggingActivity
- Windows.Foundation.Diagnostics.LoggingChannel
- Windows.Foundation.Diagnostics.LoggingChannelOptions
- Windows.Foundation.Diagnostics.LoggingFields
- Windows.Foundation.Diagnostics.LoggingOptions
- Windows.Foundation.Diagnostics.LoggingSession
- Windows.Foundation.EventHandler<T>
- Windows.Foundation.MemoryBuffer
Windows。全球化。。。
- Windows.Globalization.ApplicationLanguages
- Windows.Globalization.JapanesePhoneme
- Windows.Globalization.JapanesePhoneticAnalyzer
- Windows.Globalization.PhoneNumberFormatting.PhoneNumberFormatter
- Windows.Globalization.PhoneNumberFormatting.PhoneNumberInfo
Windows.Graphics...
- Windows.Graphics.Imaging.BitmapBuffer
- Windows.Graphics.Imaging.BitmapCodecInformation
- Windows.Graphics.Imaging.BitmapDecoder
- Windows.Graphics.Imaging.BitmapEncoder
- Windows.Graphics.Imaging.BitmapFrame
- Windows.Graphics.Imaging.BitmapProperties
- Windows.Graphics.Imaging.BitmapPropertiesView
- Windows.Graphics.Imaging.BitmapPropertySet
- Windows.Graphics.Imaging.BitmapTransform
- Windows.Graphics.Imaging.BitmapTypedValue
- Windows.Graphics.Imaging.ImageStream
- Windows.Graphics.Imaging.PixelDataProvider
- Windows.Graphics.Imaging.SoftwareBitmap
- Windows.Graphics.Printing3D.Print3DTaskRequestedEventArgs
- Windows.Graphics.Printing3D.Print3DTaskSourceRequestedHandler
- Windows.Graphics.Printing3D.Printing3D3MFPackage
- Windows.Graphics.Printing3D.Printing3DBaseMaterial
- Windows.Graphics.Printing3D.Printing3DBaseMaterialGroup
- Windows.Graphics.Printing3D.Printing3DColorMaterial
- Windows.Graphics.Printing3D.Printing3DColorMaterialGroup
- Windows.Graphics.Printing3D.Printing3DComponent
- Windows.Graphics.Printing3D.Printing3DComponentWithMatrix
- Windows.Graphics.Printing3D.Printing3DCompositeMaterial
- Windows.Graphics.Printing3D.Printing3DCompositeMaterialGroup
- Windows.Graphics.Printing3D.Printing3DFaceReductionOptions
- Windows.Graphics.Printing3D.Printing3DMaterial
- Windows.Graphics.Printing3D.Printing3DMesh
- Windows.Graphics.Printing3D.Printing3DMeshVerificationResult
- Windows.Graphics.Printing3D.Printing3DModel
- Windows.Graphics.Printing3D.Printing3DModelTexture
- Windows.Graphics.Printing3D.Printing3DMultiplePropertyMaterial
- Windows.Graphics.Printing3D.Printing3DMultiplePropertyMaterialGroup
- Windows.Graphics.Printing3D.Printing3DTexture2CoordMaterial
- Windows.Graphics.Printing3D.Printing3DTexture2CoordMaterialGroup
- Windows.Graphics.Printing3D.Printing3DTextureResource
Windows.Management...
- Windows.Management.Core.ApplicationDataManager
- Windows.Management.Deployment.DeploymentResult
- Windows.Management.Deployment.PackageManager
- Windows.Management.Deployment.PackageUserInformation
- Windows.Management.Deployment.PackageVolume
- Windows.Management.Workplace.MdmPolicy
- Windows.Management.Workplace.WorkplaceSettings
Windows.Media...
- Windows.Media.AudioBuffer
- Windows.Media.Capture.AdvancedCapturedPhoto
- Windows.Media.Capture.AppCaptureAlternateShortcutKeys
- Windows.Media.Capture.AppCaptureManager
- Windows.Media.Capture.AppCaptureSettings
- Windows.Media.Capture.CapturedFrame
- Windows.Media.Capture.MediaCaptureFailedEventArgs
- Windows.Media.Capture.MediaCaptureFailedEventHandler
- Windows.Media.Capture.MediaCapturePauseResult
- Windows.Media.Capture.MediaCaptureStopResult
- Windows.Media.Capture.OptionalReferencePhotoCapturedEventArgs
- Windows.Media.Capture.RecordLimitationExceededEventHandler
- Windows.Media.ClosedCaptioning.ClosedCaptionProperties
- Windows.Media.Devices.DefaultAudioCaptureDeviceChangedEventArgs
- Windows.Media.Devices.DefaultAudioRenderDeviceChangedEventArgs
- Windows.Media.Devices.MediaDevice
- Windows.Media.DialProtocol.DialApp
- Windows.Media.DialProtocol.DialAppStateDetails
- Windows.Media.DialProtocol.DialDevice
- Windows.Media.FaceAnalysis.DetectedFace
- Windows.Media.FaceAnalysis.FaceDetector
- Windows.Media.FaceAnalysis.FaceTracker
- Windows.Media.MediaExtensionManager
- Windows.Media.MediaProperties.H264ProfileIds
- Windows.Media.MediaProperties.MediaEncodingSubtypes
- Windows.Media.MediaProperties.Mpeg2ProfileIds
- Windows.Media.Ocr.OcrEngine
- Windows.Media.Ocr.OcrLine
- Windows.Media.Ocr.OcrResult
- Windows.Media.Ocr.OcrWord
- Windows.Media.Playback.PlaybackMediaMarker
- Windows.Media.Playback.PlaybackMediaMarkerReachedEventArgs
- Windows.Media.Playback.PlaybackMediaMarkerSequence
- Windows.Media.SpeechRecognition.SpeechContinuousRecognitionCompletedEventArgs
- Windows.Media.SpeechRecognition.SpeechContinuousRecognitionResultGeneratedEventArgs
- Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession
- Windows.Media.SpeechRecognition.SpeechRecognitionCompilationResult
- Windows.Media.SpeechRecognition.SpeechRecognitionGrammarFileConstraint
- Windows.Media.SpeechRecognition.SpeechRecognitionHypothesis
- Windows.Media.SpeechRecognition.SpeechRecognitionHypothesisGeneratedEventArgs
- Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint
- Windows.Media.SpeechRecognition.SpeechRecognitionQualityDegradingEventArgs
- Windows.Media.SpeechRecognition.SpeechRecognitionResult
- Windows.Media.SpeechRecognition.SpeechRecognitionSemanticInterpretation
- Windows.Media.SpeechRecognition.SpeechRecognitionTopicConstraint
- Windows.Media.语音识别.语音识别语音命令定义约束
- Windows.Media.SpeechRecognition.SpeechRecognizer
- Windows.Media.SpeechRecognition.SpeechRecognizerStateChangedEventArgs
- Windows.Media.SpeechRecognition.SpeechRecognizerTimeouts
- Windows.Media.SpeechRecognition.SpeechRecognizerUIOptions
- Windows.Media.SpeechSynthesis.SpeechSynthesisStream
- Windows.Media.SpeechSynthesis.SpeechSynthesizer
- Windows.Media.SpeechSynthesis.VoiceInformation
Windows.Networking...
- Windows.Networking.PushNotifications.PushNotificationChannel
- Windows.Networking.PushNotifications.PushNotificationChannelManager
- Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs
- Windows.Networking.PushNotifications.RawNotification
- Windows.Networking.Sockets.DatagramSocketMessageReceivedEventArgs
- Windows.Networking.Sockets.MessageWebSocketMessageReceivedEventArgs
Windows.Services.Maps...
重要
Windows 地图平台 API(Windows)。Services.Maps.*) 已弃用,在将来的 Windows 版本中可能不可用。 有关详细信息,请参阅 已弃用功能的资源。
- Windows.Services.Maps.Guidance.GuidanceAudioNotificationRequestedEventArgs
- Windows.Services.Maps.Guidance.GuidanceLaneInfo
- Windows.Services.Maps.Guidance.GuidanceManeuver
- Windows.Services.Maps.Guidance.GuidanceMapMatchedCoordinate
- Windows.Services.Maps.Guidance.GuidanceNavigator
- Windows.Services.Maps.Guidance.GuidanceReroutedEventArgs
- Windows.Services.Maps.Guidance.GuidanceRoadSegment
- Windows.Services.Maps.Guidance.GuidanceRoadSignpost
- Windows.Services.Maps.Guidance.GuidanceRoute
- Windows.Services.Maps.Guidance.GuidanceTelemetryCollector
- Windows.Services.Maps.Guidance.GuidanceUpdatedEventArgs
- Windows.Services.Maps.LocalSearch.LocalCategories
- Windows.Services.Maps.LocalSearch.LocalLocation
- Windows.Services.Maps.LocalSearch.LocalLocationFinder
- Windows.Services.Maps.LocalSearch.LocalLocationFinderResult
- Windows.Services.Maps.LocalSearch.LocalLocationHoursOfOperationItem
- Windows.Services.Maps.LocalSearch.LocalLocationRatingInfo
- Windows.Services.Maps.MapAddress
- Windows.Services.Maps.MapLocation
- Windows.Services.Maps.MapLocationFinder
- Windows.Services.Maps.MapLocationFinderResult
- Windows.Services.Maps.MapManager
- Windows.Services.Maps.MapRoute
- Windows.Services.Maps.MapRouteDrivingOptions
- Windows.Services.Maps.MapRouteFinder
- Windows.Services.Maps.MapRouteFinderResult
- Windows.Services.Maps.MapRouteLeg
- Windows.Services.Maps.MapRouteManeuver
- Windows.Services.Maps.MapService
Windows.Services.Store...
- Windows.Services.Store.StoreAcquireLicenseResult
- Windows.Services.Store.StoreAppLicense
- Windows.Services.Store.StoreAvailability
- Windows.Services.Store.StoreCollectionData
- Windows.Services.Store.StoreConsumableResult
- Windows.Services.Store.StoreContext
- Windows.Services.Store.StoreImage
- Windows.Services.Store.StoreLicense
- Windows.Services.Store.StorePackageLicense
- Windows.Services.Store.StorePackageUpdate
- Windows.Services.Store.StorePackageUpdateResult
- Windows.Services.Store.StorePrice
- Windows.Services.Store.StoreProduct
- Windows.Services.Store.StoreProductPagedQueryResult
- Windows.Services.Store.StoreProductQueryResult
- Windows.Services.Store.StoreProductResult
- Windows.Services.Store.StorePurchaseProperties
- Windows.Services.Store.StorePurchaseResult
- Windows.Services.Store.StoreRequestHelper
- Windows.Services.Store.StoreSendRequestResult
- Windows.Services.Store.StoreSku
- Windows.Services.Store.StoreVideo
Windows.Storage...
- Windows.Storage.AccessCache.StorageApplicationPermissions
- Windows.Storage.ApplicationData
- Windows.Storage.ApplicationDataSetVersionHandler
- Windows.Storage.CachedFileManager
- Windows.Storage.DownloadsFolder
- Windows.Storage.FileIO
- Windows.Storage.FileProperties.BasicProperties
- Windows.Storage.FileProperties.DocumentProperties
- Windows.Storage.FileProperties.ImageProperties
- Windows.Storage.FileProperties.MusicProperties
- Windows.Storage.FileProperties.StorageItemContentProperties
- Windows.Storage.FileProperties.StorageItemThumbnail
- Windows.Storage.FileProperties.VideoProperties
- Windows.Storage.KnownFolders
- Windows.Storage.PathIO
- Windows.Storage.StorageFile
- Windows.Storage.StorageFolder
- Windows.Storage.StorageLibrary
- Windows.Storage.StorageProvider
- Windows.Storage.StorageStreamTransaction
- Windows.Storage.StreamedFileDataRequest (Windows存储流式文件数据请求)
- Windows.Storage.StreamedFileDataRequestedHandler
- Windows.Storage.Streams.Buffer
- Windows.Storage.Streams.DataReader
- Windows.Storage.Streams.DataReaderLoadOperation
- Windows.Storage.Streams.DataWriter
- Windows.Storage.Streams.DataWriterStoreOperation
- Windows.Storage.Streams.FileInputStream
- Windows.Storage.Streams.FileOutputStream
- Windows.Storage.Streams.FileRandomAccessStream
- Windows.Storage.Streams.InMemoryRandomAccessStream
- Windows.Storage.Streams.InputStreamOverStream
- Windows.Storage.Streams.OutputStreamOverStream
- Windows.Storage.Streams.RandomAccessStream
- Windows.Storage.Streams.RandomAccessStreamOverStream
- Windows.Storage.Streams.RandomAccessStreamReference
- Windows.Storage.SystemAudioProperties
- Windows.Storage.SystemGPSProperties
- Windows.Storage.SystemImageProperties
- Windows.Storage.SystemMediaProperties
- Windows.Storage.SystemMusicProperties
- Windows.Storage.SystemPhotoProperties
- Windows.Storage.SystemProperties
- Windows.Storage.SystemVideoProperties
Windows.System...
- Windows.System.Diagnostics.ProcessCpuUsage
- Windows.System.Diagnostics.ProcessCpuUsageReport
- Windows.System.Diagnostics.ProcessDiagnosticInfo
- Windows.System.Diagnostics.ProcessDiskUsage
- Windows.System.Diagnostics.ProcessDiskUsageReport
- Windows.System.Diagnostics.ProcessMemoryUsage
- Windows.System.Diagnostics.ProcessMemoryUsageReport
- Windows.System.Profile.AnalyticsInfo
- Windows.System.Profile.AnalyticsVersionInfo
- Windows.System.Threading.Core.PreallocatedWorkItem
- Windows.System.Threading.Core.SignalHandler
- Windows.System.Threading.Core.SignalNotifier
- Windows.System.Threading.ThreadPool
- Windows.System.Threading.ThreadPoolTimer
- Windows.System.Threading.TimerDestroyedHandler
- Windows.System.Threading.TimerElapsedHandler
- Windows.System.Threading.WorkItemHandler
- Windows.System.TimeZoneSettings
Windows.UI
- Windows.UI.Notifications.BadgeNotification
- Windows.UI.Notifications.BadgeUpdateManager
- Windows.UI.Notifications.BadgeUpdater
- Windows.UI.Notifications.ScheduledTileNotification
- Windows.UI.Notifications.ScheduledToastNotification
- Windows.UI.Notifications.TileNotification
- Windows.UI.Notifications.TileUpdateManager
- Windows.UI.Notifications.TileUpdater
- Windows.UI.Notifications.ToastNotificationHistory
- Windows.UI.StartScreen.JumpList
- Windows.UI.StartScreen.JumpListItem
此外,当从没有程序包标识符的桌面应用调用时,AdaptiveMediaSource.CreateFromUriAsync 方法不支持 ms-appx 和 ms-resource URI 格式。