Table of Contents

Class MmException

Namespace
NAudio
Assembly
NAudio.Core.dll

Summary description for MmException.

public class MmException : Exception, ISerializable
Inheritance
MmException
Implements
Inherited Members

Constructors

MmException(MmResult, string)

Creates a new MmException

public MmException(MmResult result, string function)

Parameters

result MmResult

The result returned by the Windows API call

function string

The name of the Windows API that failed

Properties

Function

The function being called

public string Function { get; }

Property Value

string

Result

Returns the Windows API result

public MmResult Result { get; }

Property Value

MmResult

Methods

Try(MmResult, string)

Helper function to automatically raise an exception on failure

public static void Try(MmResult result, string function)

Parameters

result MmResult

The result of the API call

function string

The API function name