Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Relationship Class

Definition

Namespace:
Microsoft.Xrm.Sdk
Assembly:
Microsoft.Xrm.Sdk.dll
Package:
Microsoft.PowerPlatform.Dataverse.Client v1.2.10

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Name Description
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

Name Description
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

Name Description
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