Windows运行时组件+ Azure表 [英] Windows Runtime Component + Azure Tables

查看:90
本文介绍了Windows运行时组件+ Azure表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Windows运行时组件项目中使用Azure表.它是Windows 8.1 RT应用程序的后台代理.当我尝试定义我的 TableEntity 派生类时:

I want to use Azure tables in my Windows Runtime Component project. It is a Background Agent for my Windows 8.1 RT app. When I try to define my TableEntity derived class:

public class CustomEntity : TableEntity

我收到此错误:

Windows运行时类'CustomEntity'具有无效的基本类型'Microsoft.WindowsAzure.Storage.Table.TableEntity'.这些类必须从System.Object或可组合的Windows运行时类派生.实施继承是不允许的.

我也尝试从 ITableEntity 派生,但随后出现此错误:

I also tried deriving from ITableEntity but then I get this error:

类型'WindowsRuntimeComponent4.CustomEntity'实现的接口'Microsoft.Windows.AzureStorage.Table.ITableEntity',它不是Windows运行时接口.通过导出类型实现的所有接口都必须是Windows运行时接口.

我可以使Azure表在主要的Windows 8.1 RT应用程序,等效的Windows Phone 8.1 Silverlight应用程序以及电话应用程序的后台代理中工作.有人知道为什么它不适用于Windows运行时组件吗?

I can get Azure tables to work in the main Windows 8.1 RT app, an equivalent Windows Phone 8.1 Silverlight App, and also the Background Agent for the Phone app. Anyone know why it won't work for Windows Runtime Component?

推荐答案

Azure存储客户端库不支持Windows运行时组件.此类派生限制是不支持该组件的原因之一.

Windows Runtime Components aren't supported by Azure Storage Client Library. This class derivation limitation is one of the reasons that the Component isn't supported.

这篇关于Windows运行时组件+ Azure表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆