Share via


TnefReader Members

Include Protected Members
Include Inherited Members

The TnefReader class enables you to read properties from a TNEF stream in a forward-only manner.

The TnefReader type exposes the following members.

Constructors

  Name Description
Public method TnefReader(Stream) The TnefReader constructor creates a new TnefReader object that reads TNEF data from the inputStream argument.
Public method TnefReader(Stream, Int32, TnefComplianceMode) The TnefReader constructor creates a new TnefReader object and sets the input stream, codepage, and compliance mode.

Top

Properties

  Name Description
Public property AttachmentKey The AttachmentKey property gets a short integer value representing the attachment key.
Public property AttributeLevel The AttributeLevel property returns a TnefAttributeLevel enumeration value indicating whether the current attribute is applied to a message or an attachment.
Public property AttributeRawValueLength The AttributeRawValueLength property gets an integer representing the length of the raw value of the current attribute.
Public property AttributeRawValueStreamOffset The AttributeRawValueStreamOffset property gets an integer representing the start location of the raw value of the current attribute.
Public property AttributeTag The AttributeTag property returns a TnefAttributeTag enumeration value that identifies the current attribute.
Public property ComplianceMode The ComplianceMode property gets a TnefComplianceMode enumeration value specifying whether this TnefReader object will throw an exception if it encounters malformed TNEF data.
Public property ComplianceStatus The ComplianceStatus property gets a TnefComplianceStatus enumeration value indicating either that the TNEF data is compliant or what the noncompliance issue is.
Public property MessageCodepage The MessageCodepage gets an integer value representing the codepage to use to decode 8-bit character string properties in the TNEF data stream that belongs to this TnefReader object.
Public property PropertyReader The PropertyReader property gets a TnefPropertyReader structure that can read the properties in the TNEF stream owned by this TnefReader object.
Public property StreamOffset The StreamOffset property gets an integer representing the current position in the TNEF stream that this TnefReader object owns.
Public property TnefVersion The TnefVersion property gets the TnefVersion attribute, if found, from the TNEF stream that this TnefReader object owns.

Top

Methods

  Name Description
Public method Close The Close method closes the TNEF stream that this TnefReader object owns.
Public method Dispose()
Protected method Dispose(Boolean) Releases the unmanaged resources used by the TnefReader and optionally releases the managed resources.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ReadAttributeRawValue The ReadAttributeRawValue method reads an undecoded attribute value from the TNEF stream that this TnefReader object owns.
Public method ReadNextAttribute The ReadNextAttribute method reads the next attribute in the TNEF stream that this TnefReader object owns.
Public method ResetComplianceStatus The ResetComplianceStatus method sets the ComplianceStatus back to Compliant.
Public method ToString (Inherited from Object.)

Top