Compartilhar via


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
[<System.Runtime.Serialization.DataContract(Name="Relationship", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts")>]
type Relationship = class
    interface IExtensibleDataObject
Public NotInheritable Class Relationship
Implements IExtensibleDataObject
Inheritance
Relationship
Attributes
Implements

Constructors

Relationship()

Initializes a new instance of the Relationship class.

Relationship(String)

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

Properties

ExtensionData

Gets or sets the structure that contains extra data.

PrimaryEntityRole

Gets or sets the entity role: referenced or referencing.

SchemaName

Gets or sets the name of the relationship.

Methods

Equals(Object)

Determines whether two instances are equal.

GetHashCode()

Serves as a hash function for this type.

ToString()

Returns a String that represents the current Relationship.

Applies to

See also