LookupAttributeMetadata.Targets Property


Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Gets or sets the target entity types for the lookup.

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

public string[] Targets { get; set; }

Property Value

Type: System.String[]

Type: String[]
The array of target entity types for the lookup.

The value contains an array of entity logical names. If this value is not null, the lookup can only reference the entities contained in the array. If the value is null, use of the of the lookup attribute is not supported.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright