# KsefContext

An immutable context validated against the pinned authentication schema.

Class 

`OfficeIMO.Invoicing.KSeF`

**Namespace**

`OfficeIMO.Invoicing.KSeF`

**Assembly**

`OfficeIMO.Invoicing.KSeF`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[KsefModels.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.KSeF/KsefModels.cs#L28)

**Modifiers**

sealed

An immutable context validated against the pinned authentication schema.

## Inheritance

- object
- KsefContext

## Usage

Explore 4 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 2

- Property [KsefCredentials.Context](/api/invoicing-ksef/officeimo-invoicing-ksef-ksefcredentials/#property-context)
- Property [KsefSubmission.Context](/api/invoicing-ksef/officeimo-invoicing-ksef-ksefsubmission/#property-context)

### Accepted by parameters 2

- Method [KsefClient.BeginTokenAuthenticationAsync](/api/invoicing-ksef/officeimo-invoicing-ksef-ksefclient/#method-begintokenauthenticationasync-officeimo-invoicing-ksef-ksefcontext-officeimo-invoicing-ksef-ksefsecret-threading-cancellationtoken) parameter `context`
- Method [KsefReceipt.Inspect](/api/invoicing-ksef/officeimo-invoicing-ksef-ksefreceipt/#method-inspect-byte-officeimo-invoicing-ksef-ksefcontext-string-string-string-threading-cancellationtoken) parameter `context`

Filter members 

Show inherited

## Constructors

`public KsefContext(KsefContextKind kind, string value)` [#](#constructor-ctor-officeimo-invoicing-ksef-ksefcontextkind-string)

[KsefModels.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.KSeF/KsefModels.cs#L28)

Creates a context without verifying its registration or permissions.

Parameters

**kind OfficeIMO.Invoicing.KSeF.KsefContextKind required**

**value string 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 KsefContextKind Kind { get; }` [#](#property-kind)

[KsefModels.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.KSeF/KsefModels.cs#L33)

Official identifier kind.

`public string Value { get; }` [#](#property-value)

[KsefModels.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.KSeF/KsefModels.cs#L35)

Identifier value; this is not an authentication secret.

<!-- PowerForge markdown artifact sha256:E97BECBEC9E76DC9A1F9D115D4EA1FD66FA1C29D1BA40452F77B06422EA1C4A0 -->
