私の文字列メッセージは常に null であり、Result AsyncState も null です。誰かが間違いを見ますか?
private void create_Incident(string computer_idn, string swidn_choice,
string swName_choice, string CI_Number,
string windows_user)
{
string msg_id = "" + computer_idn + "_" + swidn_choice + "";
string username = "BISS";
server3.ILTISAPI api = new server3.ILTISAPI();
api.BeginInsertIncident(username, "", msg_id, "", "", "2857",
"BISS - Software Deployment", "", "", "NOT DETERMINED", "", "", "", "",
"", "", "5 - BAU", "3 - BAU", "", "Interface", "", "", "", "", "", "",
delegate(IAsyncResult r) { InsertIncidentCallback(api, r); }, null);
}
private void InsertIncidentCallback(server3.ILTISAPI api,
IAsyncResult result)
{
// do something and then:
string message;
api.EndInsertIncident(result, out message);
}
戻り値: <0 エラー (詳細情報は msg パラメータにあります)。=0 わかりました。=1 わかりました。詳細を含むメソッド:
public IAsyncResult BeginInsertIncident(string userName, string password,
string MsgId, string ThirdPartyRef,
string Type, string EmployeeId,
string ShortDescription, string Details,
string Category, string Service,
string OwnerGrp, string OwnerRep,
string SecondLevelGrp,
string SecondLevelRep,
string ThirdLevelGrp,
string ThirdLevelRep, string Impact,
string Urgency, string Priority,
string Source, string Status,
string State, string Solution,
string ResolvedDate, string Cause,
string Approved, AsyncCallback callback,
object asyncState);
public int EndInsertIncident(IAsyncResult asyncResult, out string msg);
エラーまたはOKがある場合、メッセージを確認したい。