Methods (4) Properties (2)
Namespace: CSCore.Win32

Syntax

public class Win32ComException : COMException

Base Type

  • System.Runtime.InteropServices.COMException

Summary

Exception for Com Exceptions.

Used by

Methods

Win32ComException(Int32 result, String interfaceName, String member)

Initializes a new instance of the Win32ComException class.

public void Win32ComException(Int32 result, String interfaceName, String member)

Parameters

result

Int32

Errorcode.

interfaceName

String

Name of the interface which contains the COM-function which returned the specified result.

member

String

Name of the COM-function which returned the specified result.

Win32ComException(SerializationInfo info, StreamingContext context)

Initializes a new instance of the Win32ComException class from serialization data.

protected void Win32ComException(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(Int32 result, String interfaceName, String member)

Throws an Win32ComException if the result is not S_OK.

public static void Try(Int32 result, String interfaceName, String member)

Parameters

result

Int32

Errorcode.

interfaceName

String

Name of the interface which contains the COM-function which returned the specified result.

member

String

Name of the COM-function which returned the specified result.

Properties

InterfaceName

Name of the Cominterface which caused the error.

public String InterfaceName { get; set; }

Member

Name of the member of the Cominterface which caused the error.

public String Member { get; set; }