Class StreamReadException

Class StreamReadException

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

Wyjątek odczytu strumienia. Powstaje, gdy odczyt strumienia nie powiódł się z powodu nieprawidłowego offsetu i żądania liczby bajtów.

public class StreamReadException : FrameworkException, ISerializable

Dziedziczenie

objectExceptionFrameworkExceptionStreamReadException

Implementuje

ISerializable

Członkowie dziedziczeni

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

Konstruktory

StreamReadException(string)

Inicjalizuje nową instancję klasy Aspose.Imaging.CoreExceptions.StreamReadException.

public StreamReadException(string message)

Parametry

message string

Wiadomość.

StreamReadException(string, Exception)

Inicjalizuje nową instancję klasy Aspose.Imaging.CoreExceptions.StreamReadException.

public StreamReadException(string message, Exception innerException)

Parametry

message string

Wiadomość.

innerException Exception

Wyjątek wewnętrzny.

StreamReadException(string, Exception, int, int)

Inicjalizuje nową instancję klasy Aspose.Imaging.CoreExceptions.StreamReadException.

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

Parametry

message string

Wiadomość.

innerException Exception

Wyjątek wewnętrzny.

expectedReadCount int

Oczekiwana liczba odczytów.

actualReadCount int

Rzeczywista liczba odczytów.

StreamReadException(string, int, int)

Inicjalizuje nową instancję klasy Aspose.Imaging.CoreExceptions.StreamReadException.

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

Parametry

message string

Wiadomość.

expectedReadCount int

Oczekiwana liczba odczytów.

actualReadCount int

Rzeczywista liczba odczytów.

Właściwości

ActualReadCount

Zwraca rzeczywistą liczbę odczytanych bajtów.

public int ActualReadCount { get; }

Wartość właściwości

int

ExpectedReadCount

Zwraca oczekiwaną liczbę odczytanych bajtów.

public int ExpectedReadCount { get; }

Wartość właściwości

int

 Polski