TnefPropertyWriterWritePropertyTag(TnefNameId, TnefPropertyType) Method

Begin a new named property.

Definition

Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public void WritePropertyTag(
	TnefNameId name,
	TnefPropertyType type
)

Parameters

name  TnefNameId
The property name.
type  TnefPropertyType
The property type.

Remarks

Completes the current property (if any) and begins a new named property. The property's values must be written next.

The property id of the named property is assigned by the TnefWriter. The same name is always assigned the same id within a TNEF stream.

Exceptions

ArgumentException type cannot be written.
ObjectDisposedException The property writer has been disposed.
InvalidOperationException

The previous property does not have the required number of values.

-or-

A row has not been started in a RecipientTable attribute.

-or-

The stream or writer for the previous value has not been disposed.

-or-

The TNEF stream contains too many named properties.

See Also