Class StreamReadException

Class StreamReadException

Namespace: Aspose.Imaging.CoreExceptions
Assembly: Aspose.Imaging.dll (25.2.0)

流读取异常。由于偏移量和字节计数请求不正确而导致流读取失败时引发。

public class StreamReadException : FrameworkException, ISerializable

继承

objectExceptionFrameworkExceptionStreamReadException

实现

ISerializable

继承成员

Exception.GetBaseException(), Exception.ToString(), Exception.GetType(), Exception.TargetSite, Exception.Message, Exception.Data, Exception.InnerException, Exception.HelpLink, Exception.Source, Exception.HResult, Exception.StackTrace, Exception.SerializeObjectState, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

构造函数

StreamReadException(string)

初始化 Aspose.Imaging.CoreExceptions.StreamReadException 类的新实例。

public StreamReadException(string message)

参数

message string

消息。

StreamReadException(string, Exception)

初始化 Aspose.Imaging.CoreExceptions.StreamReadException 类的新实例。

public StreamReadException(string message, Exception innerException)

参数

message string

消息。

innerException Exception

内部异常。

StreamReadException(string, Exception, int, int)

初始化 Aspose.Imaging.CoreExceptions.StreamReadException 类的新实例。

public StreamReadException(string message, Exception innerException, int expectedReadCount, int actualReadCount)

参数

message string

消息。

innerException Exception

内部异常。

expectedReadCount int

预期读取字节数。

actualReadCount int

实际读取字节数。

StreamReadException(string, int, int)

初始化 Aspose.Imaging.CoreExceptions.StreamReadException 类的新实例。

public StreamReadException(string message, int expectedReadCount, int actualReadCount)

参数

message string

消息。

expectedReadCount int

预期读取字节数。

actualReadCount int

实际读取字节数。

属性

ActualReadCount

获取实际读取字节数。

public int ActualReadCount { get; }

属性值

int

ExpectedReadCount

获取预期读取字节数。

public int ExpectedReadCount { get; }

属性值

int

 中文