Class StreamReadException

Class StreamReadException

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

Streamläsningsundantaget. Orsakas när streamläsningen misslyckades på grund av felaktig förskjutning och begäran om antal byte.

public class StreamReadException : FrameworkException, ISerializable

Arv

objectExceptionFrameworkExceptionStreamReadException

Implementerar

ISerializable

Ärvda Medlemmar

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()

Konstruktörer

StreamReadException(string)

Initierar en ny instans av Aspose.Imaging.CoreExceptions.StreamReadException-klassen.

public StreamReadException(string message)

Parametrar

message string

Meddelandet.

StreamReadException(string, Exception)

Initierar en ny instans av Aspose.Imaging.CoreExceptions.StreamReadException-klassen.

public StreamReadException(string message, Exception innerException)

Parametrar

message string

Meddelandet.

innerException Exception

Det inre undantaget.

StreamReadException(string, Exception, int, int)

Initierar en ny instans av Aspose.Imaging.CoreExceptions.StreamReadException-klassen.

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

Parametrar

message string

Meddelandet.

innerException Exception

Det inre undantaget.

expectedReadCount int

Det förväntade läsarantalet.

actualReadCount int

Det faktiska läsarantalet.

StreamReadException(string, int, int)

Initierar en ny instans av Aspose.Imaging.CoreExceptions.StreamReadException-klassen.

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

Parametrar

message string

Meddelandet.

expectedReadCount int

Det förväntade läsarantalet.

actualReadCount int

Det faktiska läsarantalet.

Egenskaper

ActualReadCount

Hämtar antalet faktiskt lästa byte.

public int ActualReadCount { get; }

Egenskapsvärde

int

ExpectedReadCount

Hämtar det förväntade antalet lästa byte.

public int ExpectedReadCount { get; }

Egenskapsvärde

int

 Svenska