# MermaidRequirementRelationship

Describes one Mermaid requirement relationship.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidRequirementDocument.cs:106](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidRequirementDocument.cs#L106)

**Base**

`MermaidAstNode`

**Modifiers**

sealed

Describes one Mermaid requirement relationship.

## Inheritance

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

## 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 [MermaidRequirementDocument.Relationships](/api/chartforgex-mermaid-mermaidrequirementdocument/#property-relationships)

 Filter members   

    Show inherited   

 

## Constructors

 `public MermaidRequirementRelationship(string sourceName, string targetName, string relationshipType, MermaidSourceSpan span)` [#](#constructor-ctor-string-string-string-chartforgex-mermaid-mermaidsourcespan) 

[MermaidRequirementDocument.cs:106](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidRequirementDocument.cs#L106)

Initializes a requirement relationship.

Parameters

**sourceName string required**

**targetName string required**

**relationshipType 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 SourceName { get; set; }` [#](#property-sourcename) 

[MermaidRequirementDocument.cs:113](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidRequirementDocument.cs#L113)

Gets or sets the source requirement or element name.

 `public string TargetName { get; set; }` [#](#property-targetname) 

[MermaidRequirementDocument.cs:116](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidRequirementDocument.cs#L116)

Gets or sets the target requirement or element name.

 `public string RelationshipType { get; set; }` [#](#property-relationshiptype) 

[MermaidRequirementDocument.cs:119](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidRequirementDocument.cs#L119)

Gets or sets the Mermaid relationship type token.

## 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:4B9E9908EF2FB28C165672EE5780E687B249D235EA6470AAD770EFA187D1A239 -->
