public class MmException : Exception
Exception class for all MM-APIs like waveOut or ACM.
MmException(MmResult result, String function)
Initializes a new instance of the MmException class.
public void MmException(MmResult result, String function)
Parameters
result
MmResultErrorcode.
function
StringName of the function which returned the specified result.
MmException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the MmException class from serialization data.
public void MmException(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe SerializationInfo object that holds the serialized object data.
context
StreamingContextThe StreamingContext object that supplies the contextual information about the source or destination.
GetObjectData(SerializationInfo info, StreamingContext context)
Populates a SerializationInfo with the data needed to serialize the target object.
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe SerializationInfo to populate with data.
context
StreamingContextThe destination (see StreamingContext) for this serialization.
Try(MmResult result, String function)
Throws an MmException if the result is not NoError.
public static void Try(MmResult result, String function)
Parameters
result
MmResultErrorcode.
function
StringName of the function which returned the specified result.
Function
Gets the name of the function which caused the error.
public String Function { get; }
Result
Gets the MmResult which describes the error.
public MmResult Result { get; set; }
Target
Gets the name of the function which caused the error.
public String Target { get; set; }