Class MidiEndpoint
Represents a MIDI endpoint.
Implements
Inherited Members
Namespace: Melanchall.DryWetMidi.Multimedia
Assembly: Melanchall.DryWetMidi.dll
Syntax
public abstract class MidiEndpoint : IDisposable
Fields
_disposed
Flag to detect redundant disposing.
Declaration
protected bool _disposed
Field Value
| Type | Description |
|---|---|
| bool |
_enabled
Declaration
protected bool _enabled
Field Value
| Type | Description |
|---|---|
| bool |
Properties
IsEnabled
Gets or sets a value indicating whether an endpoint is enabled (i.e. operable) or not.
Declaration
public bool IsEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
Gets the name of the current MIDI endpoint.
Declaration
public abstract string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Dispose()
Releases all resources used by the MIDI endpoint class instance.
Declaration
public void Dispose()
~MidiEndpoint()
Finalizes the current instance of the MIDI endpoint class.
Declaration
protected ~MidiEndpoint()
GetDeviceInformation()
Declaration
public DeviceInformation GetDeviceInformation()
Returns
| Type | Description |
|---|---|
| DeviceInformation |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
Overrides
Events
ErrorOccurred
Occurs when an error occurred on endpoint (for example, during MIDI events parsing).
Declaration
public event EventHandler<ErrorOccurredEventArgs> ErrorOccurred
Event Type
| Type | Description |
|---|---|
| EventHandler<ErrorOccurredEventArgs> |