RelationshipExtensions.ToRelationship Method (String, Nullable<EntityRole>)
Applies To: Dynamics CRM 2015
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
schemaName
Type: System.StringType: String. The relationship instance.
primaryEntityRole
Type: System.Nullable<EntityRole>Type: Nullable<EntityRole>. The role that the entity plays in the relationship, referencing or referenced.
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 2015
Return to top
© 2017 Microsoft. All rights reserved. Copyright