public static void TraceComError(Exception e, string format, params object[] args)
{
string message = Utils.Format(format, args);
int code = Marshal.GetHRForException(e);
string error = ResultIds.GetBrowseName(code);
if (error == null)
{
Utils.Trace(e, message);
return;
}
Utils.Trace(e, "{0}: {1}", error, message);
}
#endregion