Class StreamReadException
Namespace: Aspose.Imaging.CoreExceptions
Assembly: Aspose.Imaging.dll (25.2.0)
ข้อยกเว้นการอ่านสตรีม เกิดขึ้นเมื่อการอ่านสตรีมล้มเหลวเนื่องจากการขอออฟเซ็ตและนับไบต์ไม่ถูกต้อง
public class StreamReadException : FrameworkException, ISerializable
การสืบทอด
object ← Exception ← FrameworkException ← StreamReadException
การนำไปใช้
สมาชิกที่สืบทอด
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; }
ค่าคุณสมบัติ
ExpectedReadCount
รับจำนวนไบต์ที่อ่านที่คาดหวัง.
public int ExpectedReadCount { get; }