Share via


RelationshipExtensions.ToRelationship Method (String, Nullable<EntityRole>)

 

Applies To: Dynamics CRM 2013

Converts a relationship schema name to a relationship.

Namespace:   Microsoft.Xrm.Client
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public static Relationship ToRelationship(
    this string schemaName,
    Nullable<EntityRole> primaryEntityRole = null
)
public:
[ExtensionAttribute]
static Relationship^ ToRelationship(
    String^ schemaName,
    Nullable<EntityRole> primaryEntityRole = null
)
static member ToRelationship : 
        schemaName:string *
        primaryEntityRole:Nullable<EntityRole> = null -> Relationship
<ExtensionAttribute>
Public Shared Function ToRelationship (
    schemaName As String,
    primaryEntityRole As Nullable(Of EntityRole)
) As Relationship

Parameters

Return Value

Type: Microsoft.Xrm.Sdk.Relationship

Type: Relationship
The relationship instance.

See Also

RelationshipExtensions Class
Microsoft.Xrm.Client Namespace
Developer extensions for Microsoft Dynamics CRM 2013

Return to top