# TnefAttribute

Raw, ordered TNEF attribute retained for diagnostics and regeneration.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[TnefAttribute.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Tnef/TnefAttribute.cs#L17)

**Modifiers**

sealed

Raw, ordered TNEF attribute retained for diagnostics and regeneration.

## Inheritance

- object
- TnefAttribute

## 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

- Property [EmailAttachment.TnefAttributes](/api/email/officeimo-email-emailattachment/#property-tnefattributes)
- Property [EmailDocument.TnefAttributes](/api/email/officeimo-email-emaildocument/#property-tnefattributes)

Filter members 

Show inherited

## Constructors

`public TnefAttribute(TnefAttributeLevel level, uint tag, byte[] data, bool checksumIsValid = true)` [#](#constructor-ctor-officeimo-email-tnefattributelevel-uint32-byte-boolean)

[TnefAttribute.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Tnef/TnefAttribute.cs#L17)

Creates an attribute.

Parameters

**level OfficeIMO.Email.TnefAttributeLevel required**

**tag uint required**

**data byte[] required**

**checksumIsValid bool = true optional**

## 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 TnefAttributeLevel Level { get; }` [#](#property-level)

[TnefAttribute.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Tnef/TnefAttribute.cs#L28)

Message or attachment level.

`public uint Tag { get; }` [#](#property-tag)

[TnefAttribute.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Tnef/TnefAttribute.cs#L30)

Combined TNEF attribute identifier and type.

`public byte[] Data { get; }` [#](#property-data)

[TnefAttribute.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Tnef/TnefAttribute.cs#L32)

Attribute payload.

`public bool ChecksumIsValid { get; }` [#](#property-checksumisvalid)

[TnefAttribute.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Tnef/TnefAttribute.cs#L34)

Whether the stored checksum matched the payload.

<!-- PowerForge markdown artifact sha256:50EEAD4BA59962DC3CC442B49D0012BFDA1E51CCF9324656C00E871ECDC49222 -->
