Class StreamReadException
Namespace: Aspose.Imaging.CoreExceptions
Assembly: Aspose.Imaging.dll (25.2.0)
Ngoại lệ đọc luồng. Gây ra khi việc đọc luồng thất bại do yêu cầu offset và số byte không chính xác.
public class StreamReadException : FrameworkException, ISerializable
Kế thừa
object ← Exception ← FrameworkException ← StreamReadException
Triển khai
Thành viên kế thừa
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()
Các hàm khởi tạo
StreamReadException(string)
Khởi tạo một thể hiện mới của lớp Aspose.Imaging.CoreExceptions.StreamReadException.
public StreamReadException(string message)
Tham số
message
string
Thông điệp.
StreamReadException(string, Exception)
Khởi tạo một thể hiện mới của lớp Aspose.Imaging.CoreExceptions.StreamReadException.
public StreamReadException(string message, Exception innerException)
Tham số
message
string
Thông điệp.
innerException
Exception
Ngoại lệ bên trong.
StreamReadException(string, Exception, int, int)
Khởi tạo một thể hiện mới của lớp Aspose.Imaging.CoreExceptions.StreamReadException.
public StreamReadException(string message, Exception innerException, int expectedReadCount, int actualReadCount)
Tham số
message
string
Thông điệp.
innerException
Exception
Ngoại lệ bên trong.
expectedReadCount
int
Số byte dự kiến sẽ đọc.
actualReadCount
int
Số byte thực tế đã đọc.
StreamReadException(string, int, int)
Khởi tạo một thể hiện mới của lớp Aspose.Imaging.CoreExceptions.StreamReadException.
public StreamReadException(string message, int expectedReadCount, int actualReadCount)
Tham số
message
string
Thông điệp.
expectedReadCount
int
Số byte dự kiến sẽ đọc.
actualReadCount
int
Số byte thực tế đã đọc.
Thuộc tính
ActualReadCount
Lấy số byte thực tế đã đọc.
public int ActualReadCount { get; }
Giá trị thuộc tính
ExpectedReadCount
Lấy số byte dự kiến sẽ đọc.
public int ExpectedReadCount { get; }