MetadataQueryExpression 类

应用到: CRM 2015 on-prem, CRM Online

Represents the abstract base class for constructing a metadata query.

命名空间: Microsoft.Xrm.Sdk.Metadata.Query
程序集: Microsoft.Xrm.Sdk (在 Microsoft.Xrm.Sdk.dll 中)

语法

声明
<KnownTypeAttribute(GetType(LabelQueryExpression))> _
<DataContractAttribute(Name:="MetadataQueryExpression", Namespace:="https://schemas.microsoft.com/xrm/2011/Metadata/Query")> _
<KnownTypeAttribute(GetType(EntityQueryExpression))> _
<KnownTypeAttribute(GetType(AttributeQueryExpression))> _
<KnownTypeAttribute(GetType(RelationshipQueryExpression))> _
Public MustInherit Class MetadataQueryExpression
    Inherits MetadataQueryBase
[KnownTypeAttribute(typeof(LabelQueryExpression))] 
[DataContractAttribute(Name="MetadataQueryExpression", Namespace="https://schemas.microsoft.com/xrm/2011/Metadata/Query")] 
[KnownTypeAttribute(typeof(EntityQueryExpression))] 
[KnownTypeAttribute(typeof(AttributeQueryExpression))] 
[KnownTypeAttribute(typeof(RelationshipQueryExpression))] 
public abstract class MetadataQueryExpression : MetadataQueryBase

继承层次结构

System.Object
   Microsoft.Xrm.Sdk.Metadata.Query.MetadataQueryBase
    Microsoft.Xrm.Sdk.Metadata.Query.MetadataQueryExpression
       Microsoft.Xrm.Sdk.Metadata.Query.AttributeQueryExpression
       Microsoft.Xrm.Sdk.Metadata.Query.EntityQueryExpression
       Microsoft.Xrm.Sdk.Metadata.Query.RelationshipQueryExpression

线程安全性

此类型的所有公共静态(Visual Basic 中的 Shared)成员都是线程安全成员。不保证任何实例成员是线程安全成员。

平台

开发平台

Windows Vista、Windows Server 2003 和

目标平台

Windows 98,Windows 2000,Windows 2000 Server,Windows CE,Windows Server 2008,Windows 98 Second Edition,Pocket PC,智能电话,Windows Server 2003,Windows XP Professional,Windows Vista,Windows XP

另请参阅

参考

MetadataQueryExpression 成员
Microsoft.Xrm.Sdk.Metadata.Query 命名空间

其他资源

Query and Capture Changes to Metadata
Sample: Query Metadata and Detect Changes

Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.