Queries 中的 Query 元素(Subscription 架构)

上次修改时间: 2015年3月9日

适用范围: SharePoint Server 2010

指定要执行的 Finder 或 IDEnumerator 方法示例以填充缓存。

**命名空间:**https://schemas.microsoft.com/office/2006/03/BusinessDataCatalog

**架构:**Subscription

<Query RefreshIntervalInMinutes = "Long" MethodInstanceName = "String" Enabled = "Boolean" Name = "String" DefaultDisplayName = "String" IsCached = "Boolean"> </Query>

属性和元素

以下各部分介绍了属性、子元素和父元素。

属性

属性

说明

RefreshIntervalInMinutes

必需。

刷新缓存的时间间隔(以分钟为单位)。此值不能小于 10 分钟。如果将此值设置为小于 10 分钟,则 Microsoft Business Connectivity Services (BCS) 将忽略此值并使用默认刷新间隔(即 60 分钟)。

属性类型:Long

MethodInstanceName

必需。

模型中定义的 Finder 或 IDEnumerator 方法实例的名称。

属性类型:String

Enabled

可选。

指定是否已启用此查询。如果未启用此查询,则不运行此查询。

属性类型:Boolean

Name

必需。

此查询的名称。

属性类型:String

DefaultDisplayName

可选。

此查询的默认显示名称。

属性类型:String

IsCached

可选。

在此版本中,Business Connectivity Services 不使用此属性。

属性类型:Boolean

子元素

元素

说明

MetadataObject 中的 LocalizedDisplayNames 元素(Subscription 架构)

此查询的本地化显示名称的列表。

MetadataObject 中的 Properties 元素(Subscription 架构)

在此版本中,Business Connectivity Services 不使用此属性。

Query 中的 FilterValues 元素(Subscription 架构)

Finder 或 IDEnumerator 方法实例的筛选值的列表。

父元素

元素

说明

Subscription 中的 Queries 元素(Subscription 架构)

包含此查询的查询列表。