public class XAudio2Exception : Win32ComException
XAudio2-COMException.
XAudio2Exception(Int32 result, String interfaceName, String member)
Initializes a new instance of the XAudio2Exception class.
public void XAudio2Exception(Int32 result, String interfaceName, String member)
Parameters
result
Int32Errorcode.
interfaceName
StringName of the interface which contains the COM-function which returned the specified result.
member
StringName of the COM-function which returned the specified result.
XAudio2Exception(SerializationInfo info, StreamingContext context)
Initializes a new instance of the XAudio2Exception class from serialization data.
public void XAudio2Exception(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.
Try(Int32 result, String interfaceName, String member)
Throws an XAudio2Exception if the result is not S_OK.
public static void Try(Int32 result, String interfaceName, String member)
Parameters
result
Int32Errorcode.
interfaceName
StringName of the interface which contains the COM-function which returned the specified result.
member
StringName of the COM-function which returned the specified result.