# InvoiceProfileDeclaration

The namespace-aware invoice declaration. Identification does not establish schema or business-rule validation.

Class 

`OfficeIMO.Invoicing`

**Namespace**

`OfficeIMO.Invoicing`

**Assembly**

`OfficeIMO.Invoicing`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[InvoiceProfileDeclaration.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing/Profiles/InvoiceProfileDeclaration.cs#L25)

**Modifiers**

sealed

The namespace-aware invoice declaration. Identification does not establish schema or business-rule validation.

## Inheritance

- object
- InvoiceProfileDeclaration

## Usage

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

- Method [InvoiceProfileDeclaration.Read](/api/invoicing/officeimo-invoicing-invoiceprofiledeclaration/#method-read-byte)
- Property [InvoiceReadResult.Declaration](/api/invoicing/officeimo-invoicing-invoicereadresult/#property-declaration)

Filter members 

Show inherited

## Methods

`public static InvoiceProfileDeclaration Read(byte[] xml)` [#](#method-read-byte)

[InvoiceProfileDeclaration.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing/Profiles/InvoiceProfileDeclaration.cs#L25)

Reads one unambiguous declaration, rejecting malformed, oversized, DTD-bearing, and ambiguous XML.

Parameters

**xml byte[] required**

Returns

`InvoiceProfileDeclaration`

## 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 InvoiceSyntax Syntax { get; }` [#](#property-syntax)

[InvoiceProfileDeclaration.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing/Profiles/InvoiceProfileDeclaration.cs#L18)

Identified XML syntax.

`public string GuidelineId { get; }` [#](#property-guidelineid)

[InvoiceProfileDeclaration.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing/Profiles/InvoiceProfileDeclaration.cs#L20)

Exact trimmed guideline/customization identifier.

`public InvoiceProfile? Profile { get; }` [#](#property-profile)

[InvoiceProfileDeclaration.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing/Profiles/InvoiceProfileDeclaration.cs#L22)

Recognized profile, or null for an unsupported identifier.

## Fields

`public const int MaximumXmlBytes` [#](#field-maximumxmlbytes)

[InvoiceProfileDeclaration.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing/Profiles/InvoiceProfileDeclaration.cs#L9)

Maximum input size accepted by the invoice XML reader.

Value: `16777216`

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