public class Win32ComException : COMException
Exception for Com Exceptions.
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
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.
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
SerializationInfoThe SerializationInfo object that holds the serialized object data.
context
StreamingContextThe 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
SerializationInfoThe SerializationInfo to populate with data.
context
StreamingContextThe 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
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.
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; }