コード例 #1
0
ファイル: Program.cs プロジェクト: wzugang/XAPI2
 static void OnRtnError(object sender, ref ErrorField error)
 {
     Console.WriteLine("BB" + error.XErrorID + error.RawErrorID + error.Text());
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: ReinhardHsu/XAPI2
 static void OnRtnError(object sender, ref ErrorField error)
 {
     Console.WriteLine("BB" + error.XErrorID + error.RawErrorID + error.Text());
 }
コード例 #3
0
ファイル: Extensions.cs プロジェクト: yawsh/XAPI2
 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));
 }
コード例 #4
0
ファイル: Extensions.cs プロジェクト: yawsh/XAPI2
 public static string Text([In] this ErrorField field)
 {
     return(PInvokeUtility.GetUnicodeString(field.Text));
 }
コード例 #5
0
 private void OnRtnError_callback(object sender, ref ErrorField error)
 {
     (sender as XApi).Log.Error("OnRtnError:" + error.ToFormattedString());
 }