Class DirectSoundException
Exception thrown by DirectSound API operations. Inherits from
COMException for backwards compatibility with code that catches
COMException from the legacy [ComImport] path (which auto-threw
on failure HRESULTs via PreserveSig=false). The
[GeneratedComInterface] migration moved DirectSound to explicit
[PreserveSig] int-returning slots, so HRESULT inspection is now done via
ThrowIfFailed(int).
public class DirectSoundException : COMException, ISerializable
- Inheritance
-
DirectSoundException
- Implements
- Inherited Members
- Extension Methods
Constructors
DirectSoundException(int)
Creates a new DirectSoundException.
public DirectSoundException(int hresult)
Parameters
hresultint
Methods
ThrowIfFailed(int)
Throws a DirectSoundException if the HRESULT indicates failure.
public static void ThrowIfFailed(int hresult)
Parameters
hresultint