Search Results for

    Show / Hide Table of Contents

    Class InvalidChannelEventParameterValueException

    The exception that is thrown when the reading engine has encountered an invalid parameter of a channel event.
    Inheritance
    object
    Exception
    MidiException
    InvalidChannelEventParameterValueException
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.GetType()
    Exception.ToString()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.ReferenceEquals(object, object)
    Namespace: Melanchall.DryWetMidi.Core
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    [Serializable]
    public sealed class InvalidChannelEventParameterValueException : MidiException, ISerializable
    Remarks

    Note that this exception will be thrown only if InvalidChannelEventParameterValuePolicy is set to Abort for the ReadingSettings used for reading a MIDI file.

    Properties

    EventType

    Gets the type of channel event that caused this exception.
    Declaration
    public MidiEventType EventType { get; }
    Property Value
    Type Description
    MidiEventType

    Value

    Gets the value of the channel event's parameter that caused this exception.
    Declaration
    public byte Value { get; }
    Property Value
    Type Description
    byte

    Methods

    GetObjectData(SerializationInfo, StreamingContext)

    Sets the SerializationInfo with information about the exception.
    Declaration
    public override void GetObjectData(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo info The SerializationInfo that holds the serialized object data about the exception being thrown.
    StreamingContext context The StreamingContext that contains contextual information about the source or destination.
    Overrides
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exceptions
    Type Condition
    ArgumentNullException info is null.

    Implements

    ISerializable
    In this article
    Back to top 2024 / Generated by DocFX