public class MediaFoundationException : Win32ComException
Mediafoundation COM Exception
MediaFoundationException(Int32 result, String interfaceName, String member)
Initializes a new instance of the MediaFoundationException class.
public void MediaFoundationException(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.
MediaFoundationException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the MediaFoundationException class from serialization data.
public void MediaFoundationException(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 MediaFoundationException 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.