New to Telerik Document ProcessingStart a free 30-day trial

Thrown when an input stream lacks required capabilities (Read/Seek) or uses an unsupported stream type.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Exceptions

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public class NotSupportedStreamTypeException : NotSupportedFeatureException, ISerializable

Inheritance: objectExceptionNotSupportedFeatureExceptionNotSupportedStreamTypeException

Implements: ISerializable

Inherited Members Exception.GetBaseException()Exception.ToString()Exception.GetType()Exception.TargetSiteException.MessageException.DataException.InnerExceptionException.HelpLinkException.SourceException.HResultException.StackTraceException.SerializeObjectState...

Constructors

Initializes a new instance of the NotSupportedStreamTypeException class.

C#
public NotSupportedStreamTypeException()

Initializes a new instance of the NotSupportedStreamTypeException class.

C#
public NotSupportedStreamTypeException(bool supportsRead, bool supportsSeek, string message)
Parameters:supportsReadbool

A value indicating whether the stream supports read operations.

supportsSeekbool

A value indicating whether the stream supports seek operations.

messagestring

The error message that explains the reason for the exception.

Initializes a new instance of the NotSupportedStreamTypeException class.

C#
public NotSupportedStreamTypeException(bool supportsRead, bool supportsSeek)
Parameters:supportsReadbool

A value indicating whether the stream supports read operations.

supportsSeekbool

A value indicating whether the stream supports seek operations.

Initializes a new instance of the NotSupportedStreamTypeException class.

C#
protected NotSupportedStreamTypeException(SerializationInfo info, StreamingContext context)
Parameters:infoSerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

contextStreamingContext

The StreamingContext that contains contextual information about the source or destination.

Initializes a new instance of the NotSupportedStreamTypeException class.

C#
public NotSupportedStreamTypeException(string message, Exception cause)
Parameters:messagestring

The error message that explains the reason for the exception.

causeException

The exception that is the cause of the current exception.

Initializes a new instance of the NotSupportedStreamTypeException class.

C#
public NotSupportedStreamTypeException(string message)
Parameters:messagestring

The error message that explains the reason for the exception.

Methods

Provides COM objects with version-independent access to the GetObjectData(SerializationInfo, StreamingContext) method

C#
[SecurityCritical]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters:infoSerializationInfo

The SerializationInfo object that holds the serialized object data about the exception being thrown.

contextStreamingContext

The StreamingContext structure that contains contextual information about the source or destination.

Overrides: Exception.GetObjectData(SerializationInfo, StreamingContext)

Properties

Gets a value indicating whether the stream supports read operations.

C#
public bool SupportsRead { get; }
Property Value:

true if the stream supports read operations; otherwise, false.

Gets a value indicating whether the stream supports seek operations.

C#
public bool SupportsSeek { get; }
Property Value:

true if the stream supports seek operations; otherwise, false.