# MermaidC4Relationship

Describes a C4 relationship. Review signatures, members, parameters, type relationships, and available reference details in ChartForgeX API reference.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidC4Document.cs:150](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L150)

**Base**

`MermaidAstNode`

**Modifiers**

sealed

Describes a C4 relationship.

## Inheritance

- [MermaidAstNode](/api/chartforgex-mermaid-mermaidastnode/)
- MermaidC4Relationship

## Usage

 Explore 1 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [MermaidC4Document.Relationships](/api/chartforgex-mermaid-mermaidc4document/#property-relationships)

 Filter members   

    Show inherited   

 

## Constructors

 `public MermaidC4Relationship(string sourceAlias, string targetAlias, string kind, MermaidSourceSpan span)` [#](#constructor-ctor-string-string-string-chartforgex-mermaid-mermaidsourcespan) 

[MermaidC4Document.cs:150](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L150)

Initializes a C4 relationship.

Parameters

**sourceAlias string required**

**targetAlias string required**

**kind string required**

**span ChartForgeX.Mermaid.MermaidSourceSpan required**

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public string SourceAlias { get; set; }` [#](#property-sourcealias) 

[MermaidC4Document.cs:157](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L157)

Gets or sets the source element alias.

 `public string TargetAlias { get; set; }` [#](#property-targetalias) 

[MermaidC4Document.cs:160](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L160)

Gets or sets the target element alias.

 `public string? AuthoredIndex { get; set; }` [#](#property-authoredindex) 

[MermaidC4Document.cs:163](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L163)

Gets or sets an explicitly authored RelIndex value, independently of displayed dynamic order.

 `public string Kind { get; set; }` [#](#property-kind) 

[MermaidC4Document.cs:166](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L166)

Gets or sets the normalized relationship kind.

 `public string? Label { get; set; }` [#](#property-label) 

[MermaidC4Document.cs:169](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L169)

Gets or sets the optional relationship label.

 `public string? Technology { get; set; }` [#](#property-technology) 

[MermaidC4Document.cs:172](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L172)

Gets or sets the optional technology label.

 `public string? Tags { get; set; }` [#](#property-tags) 

[MermaidC4Document.cs:175](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L175)

Gets or sets optional Mermaid tags.

 `public string? Link { get; set; }` [#](#property-link) 

[MermaidC4Document.cs:178](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidC4Document.cs#L178)

Gets or sets optional Mermaid link metadata.

## Inherited Properties

 `public MermaidSourceSpan Span { get; }` [#](#property-span) 

[MermaidAstNode.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidAstNode.cs#L13)

Inherited from [MermaidAstNode](/api/chartforgex-mermaid-mermaidastnode/)

<!-- PowerForge markdown artifact sha256:CB17D4ABC29673F32261219ACA6147003E53ACEC684498016006E57B5C9DC186 -->
