Xeno-rat
Loading...
Searching...
No Matches
NAudio.MmException Class Reference

Summary description for MmException. More...

Inheritance diagram for NAudio.MmException:
Collaboration diagram for NAudio.MmException:

Public Member Functions

 MmException (MmResult result, string function)
 Creates a new MmException.
 

Static Public Member Functions

static void Try (MmResult result, string function)
 Throws an exception if the specified result is not equal to MmResult.NoError.
 

Properties

MmResult Result [get]
 Returns the Windows API result.
 

Static Private Member Functions

static string ErrorMessage (MmResult result, string function)
 Generates an error message based on the result and function name.
 

Private Attributes

MmResult result
 
string function
 

Detailed Description

Summary description for MmException.

Constructor & Destructor Documentation

◆ MmException()

NAudio.MmException.MmException ( MmResult result,
string function )
inline

Creates a new MmException.

Parameters
resultThe result returned by the Windows API call
functionThe name of the Windows API that failed
Here is the caller graph for this function:

Member Function Documentation

◆ ErrorMessage()

static string NAudio.MmException.ErrorMessage ( MmResult result,
string function )
inlinestaticprivate

Generates an error message based on the result and function name.

Parameters
resultThe result of the function call.
functionThe name of the function being called.
Returns
A string containing the error message with the result and function name.

◆ Try()

static void NAudio.MmException.Try ( MmResult result,
string function )
inlinestatic

Throws an exception if the specified result is not equal to MmResult.NoError.

Parameters
resultThe result to be checked.
functionThe name of the function where the exception is thrown.
Exceptions
MmExceptionThrown when the specified result is not equal to MmResult.NoError.
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ function

string NAudio.MmException.function
private

◆ result

MmResult NAudio.MmException.result
private

Property Documentation

◆ Result

MmResult NAudio.MmException.Result
get

Returns the Windows API result.


The documentation for this class was generated from the following file: