# IDataReaderUtf8TextSource

Exposes the current field's text through provider-owned UTF-8 storage.

Interface 

`OfficeIMO.Data`

**Namespace**

`OfficeIMO.Data`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`07c6bff0a794` with working tree changes

**Source**

[DataReaderUtf8Text.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Core/Data/DataReaderUtf8Text.cs#L13)

**Modifiers**

abstract

Exposes the current field's text through provider-owned UTF-8 storage.

## Remarks

This is an optional capability. A provider may return false for any field that requires decoding, conversion, or materialization. A supporting provider may initialize or update its text cache when a field is requested. The ordinary data-record getters remain available in either case.

Filter members 

Show inherited

## Methods

`public abstract bool TryGetUtf8Text(int ordinal, out ReadOnlySpan<byte> text)` [#](#method-trygetutf8text-int32-readonlyspan-system-byte)

Attempts to borrow the current field's decoded text as UTF-8 bytes.

Parameters

**ordinal int required**

The zero-based field ordinal.

**text System.ReadOnlySpan<byte> required**

The borrowed text when successful; otherwise an empty span.

Returns

`bool` True when the field's text can be borrowed from provider-owned storage.

Exceptions

- `IndexOutOfRangeException` – The ordinal is outside the reader's fields.
- `InvalidOperationException` – The reader is closed or is not positioned on a row.

<!-- PowerForge markdown artifact sha256:5DCC0972402EEB72063FBF8F384864B7B868A3AD2653E06842E2D07B8D6D2A31 -->
