Relationship Relationship Relationship Relationship Class

Definition

Represents a relationship between two entities.

public ref class Relationship sealed : System::Runtime::Serialization::IExtensibleDataObject
[System.Runtime.Serialization.DataContract(Name="Relationship", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts")]
public sealed class Relationship : System.Runtime.Serialization.IExtensibleDataObject
type Relationship = class
    interface IExtensibleDataObject
Public NotInheritable Class Relationship
Implements IExtensibleDataObject
Inheritance
RelationshipRelationshipRelationshipRelationship
Attributes
Implements

Constructors

Relationship() Relationship() Relationship() Relationship()

Initializes a new instance of the Relationship class.

Relationship(String) Relationship(String) Relationship(String) Relationship(String)

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

Properties

ExtensionData ExtensionData ExtensionData ExtensionData

Gets or sets the structure that contains extra data.

PrimaryEntityRole PrimaryEntityRole PrimaryEntityRole PrimaryEntityRole

Gets or sets the entity role: referenced or referencing.

SchemaName SchemaName SchemaName SchemaName

Gets or sets the name of the relationship.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether two instances are equal.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as a hash function for this type.

ToString() ToString() ToString() ToString()

Returns a String that represents the current Relationship.

Applies to

See also