Поделиться через


MetadataPropertiesExpression Class

 

Applies To: Dynamics CRM 2015

Specifies the properties for which non-null values are returned from a query.

Namespace:   Microsoft.Xrm.Sdk.Metadata.Query
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Xrm.Sdk.Metadata.Query.MetadataPropertiesExpression

Syntax

[DataContractAttribute(Name = "MetadataPropertiesExpression", 
    Namespace = "https://schemas.microsoft.com/xrm/2011/Metadata/Query")]
public sealed class MetadataPropertiesExpression : IExtensibleDataObject
[DataContractAttribute(Name = "MetadataPropertiesExpression", 
    Namespace = "https://schemas.microsoft.com/xrm/2011/Metadata/Query")]
public ref class MetadataPropertiesExpression sealed : IExtensibleDataObject
[<Sealed>]
[<DataContractAttribute(Name = "MetadataPropertiesExpression",
    Namespace = "https://schemas.microsoft.com/xrm/2011/Metadata/Query")>]
type MetadataPropertiesExpression = 
    class
        interface IExtensibleDataObject
    end
<DataContractAttribute(Name := "MetadataPropertiesExpression",
    Namespace := "https://schemas.microsoft.com/xrm/2011/Metadata/Query")>
Public NotInheritable Class MetadataPropertiesExpression
    Implements IExtensibleDataObject

Constructors

Name Description
System_CAPS_pubmethod MetadataPropertiesExpression()

Initializes a new instance of the MetadataPropertiesExpression class.

System_CAPS_pubmethod MetadataPropertiesExpression(String[])

Initializes a new instance of the MetadataPropertiesExpression class.

Properties

Name Description
System_CAPS_pubproperty AllProperties

Gets or sets whether to retrieve all the properties of a metadata object.

System_CAPS_pubproperty ExtensionData

Gets or sets the structure that contains extra data.

System_CAPS_pubproperty PropertyNames

Gets or sets a collection of strings representing the metadata properties to retrieve.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

When the metadata object is instantiated all properties are included but any properties not specified by the MetadataPropertiesExpression will contain null values.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Xrm.Sdk.Metadata.Query Namespace
Retrieve and detect changes to metadata
Sample: Query metadata and detect changes

Return to top

© 2016 Microsoft. All rights reserved. Copyright