TnefReader Constructor (Stream, Int32, TnefComplianceMode)
The TnefReader constructor creates a new TnefReader object and sets the input stream, codepage, and compliance mode.
Namespace: Microsoft.Exchange.Data.ContentTypes.Tnef
Assembly: Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)
Syntax
'Declaration
Public Sub New ( _
inputStream As Stream, _
defaultMessageCodepage As Integer, _
complianceMode As TnefComplianceMode _
)
'Usage
Dim inputStream As Stream
Dim defaultMessageCodepage As Integer
Dim complianceMode As TnefComplianceMode
Dim instance As New TnefReader(inputStream, _
defaultMessageCodepage, complianceMode)
public TnefReader(
Stream inputStream,
int defaultMessageCodepage,
TnefComplianceMode complianceMode
)
Parameters
- inputStream
Type: System.IO.Stream
A stream containing binary TNEF data.
- defaultMessageCodepage
Type: System.Int32
An integer indicating the codepage to use when decoding the input stream.
- complianceMode
Type: Microsoft.Exchange.Data.ContentTypes.Tnef.TnefComplianceMode
A TnefComplianceMode enumeration value indicating whether to throw exceptions when noncompliant TNEF data is encountered.