# AnalyticsProfile Class

> AnalyticsProfile class in the TX Sheet Control .NET API: Source metadata, field types, row count and deterministic ambiguity diagnostics.

- **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)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > AnalyticsProfile Class
- **882 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsprofile/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsprofile/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsprofile/llms-full.txt

---

Source metadata, field types, row count and deterministic ambiguity diagnostics.

### Syntax

```csharp
public class AnalyticsProfile
```

### Members

#### Constructors

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

#### Properties

| Property | Description |
|---|---|
| [Diagnostics](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsprofile/diagnostics-property/llms-full.txt) | Diagnostics value; validation is applied by the owning workbook operation. |
| [Fields](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsprofile/fields-property/llms-full.txt) | Fields value; validation is applied by the owning workbook operation. |
| [RowCount](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsprofile/rowcount-property/llms-full.txt) | RowCount value; validation is applied by the owning workbook operation. |
| [Source](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsprofile/source-property/llms-full.txt) | Source value; validation is applied by the owning workbook operation. |

### Examples

Obtain AnalyticsProfile from a real document operation. Return the detached result to the calling report, API response or application.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<AnalyticsProfile> ReadReportAnalyticsProfileAsync(ServerSheetControl control)
{
    var book = control.Workbook;
    var sheet = await book.Sheets.AtAsync(0);
    await sheet.Range("A1:B5").SetValuesAsync(new object?[][]
    {
        ["Region", "Revenue"], ["North", 42000], ["South", 38500], ["East", 31200], ["West", 44900]
    });

    await book.Analytics.SetSourceAsync(new AnalyticsSource { Id = "sales", Name = "Regional sales", SheetId = sheet.Id, Range = "A1:B5", HasHeaderRow = true });

    var result = await book.Analytics.ProfileAsync("sales");
    return result;
}
```

### See Also

- [TXTextControl.TXSheetControl.Server Namespace](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/llms-full.txt)
- [Creating Dashboards](https://docs.textcontrol.com/tx-sheet-control/dashboards/creating/llms-full.txt)

---

## In This Section

- [AnalyticsProfile Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsprofile/constructor/llms-full.txt): AnalyticsProfile constructor in the TX Sheet Control .NET API, with its syntax, a C# example and remarks on awaiting tasks and handles.
- [AnalyticsProfile.Diagnostics Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsprofile/diagnostics-property/llms-full.txt): AnalyticsProfile.Diagnostics property in the TX Sheet Control .NET API, with its syntax, its type string[] and a C# example.
- [AnalyticsProfile.Fields Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsprofile/fields-property/llms-full.txt): AnalyticsProfile.Fields property in the TX Sheet Control .NET API, with its syntax, its type AnalyticsField[] and a C# example.
- [AnalyticsProfile.RowCount Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsprofile/rowcount-property/llms-full.txt): AnalyticsProfile.RowCount property in the TX Sheet Control .NET API: RowCount value; validation is applied by the owning workbook operation.
- [AnalyticsProfile.Source Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsprofile/source-property/llms-full.txt): AnalyticsProfile.Source property in the TX Sheet Control .NET API, with its syntax, its type AnalyticsSource and a C# example.

---

## Nearby

- **Previous:** [AnalyticsMeasure.Field Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsmeasure/field-property/llms-full.txt)
- **Next:** [AnalyticsProfile Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsprofile/constructor/llms-full.txt)
