Windows 运行时组件 + Azure 表

Windows Runtime Component + Azure Tables

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

public class CustomEntity : TableEntity

我收到这个错误:

Windows 运行时 class 'CustomEntity' 具有无效的基类型 'Microsoft.WindowsAzure.Storage.Table.TableEntity'。 Classes 必须派生自 System.Object 或可组合的 Windows 运行时 Class。不允许实现继承。

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

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

我可以让 Azure 表在主 Windows 8.1 RT 应用程序、等效的 Windows Phone 8.1 Silverlight 应用程序以及 Phone 应用程序。有人知道为什么它不适用于 Windows 运行时组件吗?

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