Methods (4) Properties (3)
Namespace: CSCore

Syntax

public class MmException : Exception

Base Type

  • System.Exception

Summary

Exception class for all MM-APIs like waveOut or ACM.

Used by

Methods

MmException(MmResult result, String function)

Initializes a new instance of the MmException class.

public void MmException(MmResult result, String function)

Parameters

result

MmResult

Errorcode.

function

String

Name 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

SerializationInfo

The SerializationInfo object that holds the serialized object data.

context

StreamingContext

The 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

SerializationInfo

The SerializationInfo to populate with data.

context

StreamingContext

The 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

MmResult

Errorcode.

function

String

Name of the function which returned the specified result.

Properties

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; }