Relationship Class

 

Updated: November 29, 2016

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

Represents a relationship between two entities.

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

System.Object
  Microsoft.Xrm.Sdk.Relationship

[DataContractAttribute(Name = "Relationship", Namespace = "http://schemas.microsoft.com/xrm/2011/Contracts")]
public sealed class Relationship : IExtensibleDataObject

NameDescription
System_CAPS_pubmethodRelationship()

Initializes a new instance of the Relationship class.

System_CAPS_pubmethodRelationship(String)

Initializes a new instance of the Relationship class setting the schema name property.

NameDescription
System_CAPS_pubpropertyExtensionData

Gets or sets the structure that contains extra data.

System_CAPS_pubpropertyPrimaryEntityRole

Gets or sets the entity role: referenced or referencing.

System_CAPS_pubpropertySchemaName

Gets or sets the name of the relationship.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether two instances are equal.(Overrides Object.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Serves as a hash function for this type.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a String that represents the current Relationship.(Overrides Object.ToString().)

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Community Additions

ADD
Show: