Relationship Class
Applies To: Dynamics CRM 2015
Represents a relationship between two entities.
Namespace: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Inheritance Hierarchy
System.Object
Microsoft.Xrm.Sdk.Relationship
Syntax
[DataContractAttribute(Name = "Relationship", Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")]
public sealed class Relationship : IExtensibleDataObject
[DataContractAttribute(Name = "Relationship", Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")]
public ref class Relationship sealed : IExtensibleDataObject
[<Sealed>]
[<DataContractAttribute(Name = "Relationship", Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")>]
type Relationship =
class
interface IExtensibleDataObject
end
<DataContractAttribute(Name := "Relationship", Namespace := "https://schemas.microsoft.com/xrm/2011/Contracts")>
Public NotInheritable Class Relationship
Implements IExtensibleDataObject
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.(Overrides Object.Equals(Object).) |
|
GetHashCode() | Serves as a hash function for this type.(Overrides Object.GetHashCode().) |
|
GetType() | (Inherited from Object.) |
|
ToString() | Returns a String that represents the current Relationship.(Overrides Object.ToString().) |
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
RelationshipMetadataBase
OneToManyRelationshipMetadata
ManyToManyRelationshipMetadata
Microsoft.Xrm.Sdk Namespace
Customize entity relationship metadata
Return to top
© 2016 Microsoft. All rights reserved. Copyright