Class StreamReadException
ja nimityö: Aspose.Imaging.CoreExceptions Kokoelma: Aspose.Imaging.dll (25.4.0)
Virta lukeminen poikkeus. aiheuttama, kun virta lukeminen epäonnistui virheellisen korvauksen ja bytien laskemisen pyynnön vuoksi.
public class StreamReadException : FrameworkException, ISerializable
Inheritance
object ← Exception ← FrameworkException ← StreamReadException
Implements
Perintöjäsenet
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()
Constructors
StreamReadException(String)
Aloitetaan uusi esimerkki Aspose.Imaging.CoreExceptions.StreamReadException luokka.
public StreamReadException(string message)
Parameters
message
string
Tämä viesti .
StreamReadException(Sinkki, poikkeus)
Aloitetaan uusi esimerkki Aspose.Imaging.CoreExceptions.StreamReadException luokka.
public StreamReadException(string message, Exception innerException)
Parameters
message
string
Tämä viesti .
innerException
Exception
Sisäinen poikkeus on.
StreamReadException(Tyyppi, poikkeus, int, int)
Aloitetaan uusi esimerkki Aspose.Imaging.CoreExceptions.StreamReadException luokka.
public StreamReadException(string message, Exception innerException, int expectedReadCount, int actualReadCount)
Parameters
message
string
Tämä viesti .
innerException
Exception
Sisäinen poikkeus on.
expectedReadCount
int
Odotetun lukemisen lasku.
actualReadCount
int
Oikea lukeminen lasketaan.
StreamReadException(Tyyppi, int, int)
Aloitetaan uusi esimerkki Aspose.Imaging.CoreExceptions.StreamReadException luokka.
public StreamReadException(string message, int expectedReadCount, int actualReadCount)
Parameters
message
string
Tämä viesti .
expectedReadCount
int
Odotetun lukemisen lasku.
actualReadCount
int
Oikea lukeminen lasketaan.
Properties
ActualReadCount
Saat todellisen lukemisen bytejä.
public int ActualReadCount { get; }
Omistuksen arvo
ExpectedReadCount
Saat odotetun lukemisen bytejä.
public int ExpectedReadCount { get; }