# XlsxWarning Class

> XlsxWarning class in the TX Sheet Control .NET API: Worksheet-scoped server API contract; requests retain document identity and cancellation semantics.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Implements:** `System.IEquatable<TXTextControl.TXSheetControl.Server.XlsxWarning>`
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > XlsxWarning Class
- **557 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/xlsxwarning/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/xlsxwarning/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/xlsxwarning/llms-full.txt

---

Worksheet-scoped server API contract; requests retain document identity and cancellation semantics.

### Syntax

```csharp
public class XlsxWarning
```

Interfaces: `IEquatable<XlsxWarning>`.

### Members

#### Constructors

| Constructor | Description |
|---|---|
| [Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/xlsxwarning/constructor/llms-full.txt) |  |

#### Properties

| Property | Description |
|---|---|
| [Code](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/xlsxwarning/code-property/llms-full.txt) |  |
| [Message](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/xlsxwarning/message-property/llms-full.txt) |  |
| [Part](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/xlsxwarning/part-property/llms-full.txt) |  |

### Examples

Load a real XLSX file and build import notices for the application UI. A successful import can still report unsupported features; the array is empty for a clean conversion.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<string[]> GetImportNoticesAsync(ServerSheetControl control, byte[] originalDocument)
{
    var loaded = await control.LoadAsync(originalDocument, StreamType.SpreadsheetML);
    var notices = loaded.Warnings.Select(notice => notice.Message).ToArray();
    return notices;
}
```

### See Also

- [TXTextControl.TXSheetControl.Server Namespace](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/llms-full.txt)
- [Loading and Saving Workbooks](https://docs.textcontrol.com/tx-sheet-control/document-processing/load-save/llms-full.txt)

---

## In This Section

- [XlsxWarning.Code Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/xlsxwarning/code-property/llms-full.txt): XlsxWarning.Code property in the TX Sheet Control .NET API, with its syntax, its type string, a C# example and remarks on awaiting tasks and handles.
- [XlsxWarning Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/xlsxwarning/constructor/llms-full.txt): XlsxWarning constructor in the TX Sheet Control .NET API, with its syntax, the parameters Code, Message and Part and a C# example.
- [XlsxWarning.Message Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/xlsxwarning/message-property/llms-full.txt): XlsxWarning.Message property in the TX Sheet Control .NET API, with its syntax, its type string, a C# example and remarks on awaiting tasks and handles.
- [XlsxWarning.Part Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/xlsxwarning/part-property/llms-full.txt): XlsxWarning.Part property in the TX Sheet Control .NET API, with its syntax, its type string?, a C# example and remarks on awaiting tasks and handles.

---

## Nearby

- **Previous:** [XlsxExportOptions.Fonts Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/xlsxexportoptions/fonts-property/llms-full.txt)
- **Next:** [XlsxWarning Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/xlsxwarning/constructor/llms-full.txt)
