Get Eulanda Registry Text
Zuletzt geändert: 19.04.2026 03:03

Übersicht

Get-EulandaRegistryText #

ÜBERSICHT #

Liest einen Text-Value (nvarchar(max), VALUE_TYPE=4) aus der SQL-Registry. Inhaltlich identisch zu Get-EulandaRegistryString, semantisch für lange Texte.

SYNTAX #

Get-EulandaRegistryText [-Default] <string> [[-Conn] <__ComObject>] [[-Udl] <string>] [[-ConnStr]
    <string>] [<CommonParameters>]

BESCHREIBUNG #

Die SQL-Registry trennt intern VALUE_TYPE=2 (String, typisch nvarchar mit Längen-Limit) von VALUE_TYPE=4 (Text, nvarchar(max)). Beim Lesen liefert cnf_RegReadString beides transparent als nvarchar(max) zurück, d.h. Get-EulandaRegistryText und Get-EulandaRegistryString haben aktuell identische Runtime-Semantik.

Der explizite Text-Name ist für Code-Lesbarkeit gedacht: wer z.B. einen mehrzeiligen Footer, LangText oder JSON-Blob liest, macht mit Get-EulandaRegistryText sofort sichtbar “hier kommt ein langer Textwert”. Future-proof: falls der Backend-Read einmal zwischen Typen unterscheiden soll, muss nur diese Funktion angepasst werden.

PARAMETER #

-Path #

Registry-Pfad.

-Name #

Value-Name.

-Default #

Type: string
Default: ''

Fallback-Wert. Default: ''.

-Conn #

Type: __ComObject

Bestehende ADODB.Connection. Alternativ -Udl oder -ConnStr.

AUSGABEN #

[string]

BEISPIELE #

$footer = Get-EulandaRegistryText -Conn $conn `
  -Path '\MODULES\Grundwerte\Xfacture' -Name 'LegalNote'