OrganizationServiceContextExtensions.LoadProperty Method (OrganizationServiceContext, Entity, String, Nullable<EntityRole>)

 

Applies To: Dynamics CRM 2013

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

  • relationshipSchemaName
    Type: System.String

    Type: String. The schema name of the relationship.

Remarks

This is an extension to the core LoadProperty method.

See Also

LoadProperty Overload
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client Namespace

Return to top