Class UnknownFileFormatException
The exception that is thrown when a MIDI file format is unknown.
Implements
Inherited Members
Namespace: Melanchall.DryWetMidi.Core
Assembly: Melanchall.DryWetMidi.dll
Syntax
[Serializable]
public sealed class UnknownFileFormatException : MidiException, ISerializable
Remarks
Note that this exception will be thrown only if UnknownFileFormatPolicy is set to Abort for the ReadingSettings used for reading a MIDI file.
Properties
FileFormat
Gets the number that represents format of a MIDI file.
Declaration
public ushort FileFormat { get; }
Property Value
| Type | Description |
|---|---|
| ushort |
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
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | info is null. |