static void OnRtnError(object sender, ref ErrorField error) { Console.WriteLine("BB" + error.XErrorID + error.RawErrorID + error.Text()); }
public static string ToFormattedString([In] this ErrorField field) { return(string.Format("[XErrorID={0};RawErrorID={1};Text={2};Source={3}]", field.XErrorID, field.RawErrorID, field.Text(), field.Source)); }
public static string Text([In] this ErrorField field) { return(PInvokeUtility.GetUnicodeString(field.Text)); }
private void OnRtnError_callback(object sender, ref ErrorField error) { (sender as XApi).Log.Error("OnRtnError:" + error.ToFormattedString()); }