OrganizationServiceContextExtensions.LoadProperty Method (OrganizationServiceContext, Entity, String, Nullable<EntityRole>)
Applies To: Dynamics CRM 2015
Loads the related entity collection for the specified relationship.
Namespace: Microsoft.Xrm.Client
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static void LoadProperty(
this OrganizationServiceContext context,
Entity entity,
string relationshipSchemaName,
Nullable<EntityRole> primaryEntityRole = null
)
public:
[ExtensionAttribute]
static void LoadProperty(
OrganizationServiceContext^ context,
Entity^ entity,
String^ relationshipSchemaName,
Nullable<EntityRole> primaryEntityRole = null
)
static member LoadProperty :
context:OrganizationServiceContext *
entity:Entity *
relationshipSchemaName:string *
primaryEntityRole:Nullable<EntityRole> = null -> unit
<ExtensionAttribute>
Public Shared Sub LoadProperty (
context As OrganizationServiceContext,
entity As Entity,
relationshipSchemaName As String,
primaryEntityRole As Nullable(Of EntityRole)
)
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextType: OrganizationServiceContext. The service context.
entity
Type: Microsoft.Xrm.Sdk.EntityType: Entity. The entity instance.
relationshipSchemaName
Type: System.StringType: String. The schema name of the relationship.
primaryEntityRole
Type: System.Nullable<EntityRole>Type: Nullable<EntityRole>. The role that the entity plays in the relationship, referencing or referenced.
Remarks
This is an extension to the core LoadProperty method.
See Also
LoadProperty Overload
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client Namespace
Return to top
© 2017 Microsoft. All rights reserved. Copyright