私のシナリオは、ActiveDirectoryオブジェクトを返すWebAPIを作成したことです。
このWEBAPI関数でActiveDirectoryユーザーを作成し、First Name , Last Name, Email, UserName, Etc.
..を含むActiveDirectoryオブジェクトを返すユーザーを作成します。エラーが発生した場合はどうすればよいですか。
Kendo GridInLineEditを使用していますhttp:
//demos.kendoui.com/web/grid/editing-inline.html
エラーメッセージをポップアップウィンドウとして表示したい
どうすればいいですか?
オプション
エラーをキャッチして、ActiveDirectoryオブジェクトを例外として配置してみてください???
- これを剣道UIでキャプチャするにはどうすればよいですか?
応答をスローしてエラーメッセージを取得し、剣道グリッドに表示します
// HttpResponseMessage msg = new HttpResponseMessage(HttpStatusCode.OK)// {// Content = new StringContent(string.Format( "No User with ID = {0}。{1}"、businessObject.UserName、ex.InnerException.ToString ()))、// ReasonPhrase = "CustomerIDがデータベースに見つかりません!" //}; //新しいHttpResponseException(msg);をスローします
また
//var message = string.Format("Error Message: {0}", taskCreateADUser.ADExceptionDescription);
//throw new HttpResponseException(
// Request.CreateErrorResponse(HttpStatusCode.OK, message));
ありがとう、MarcLevin