{infiniteZest}
// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
AJAX
Apple
ASP.NET
.NET
Git
Google / Android
Python / IronPython
Miscellaneous
SQL Server
AJAX Source Viewer
View the source code of a Method from ASP.NET AJAX Library. Choose a method from the menu items above (Namespaces, Classes, or Methods).
Method 'argument(paramName, message)'
Method: argument(paramName, message)
Method Full Name:     Error$argument(paramName, message)
Class: Error
Namespace: Global (MicrosoftAjax.debug.js)
Source File: MicrosoftAjax.debug.js
1   Error.argument = function Error$argument(paramName, message) {
2     /// <summary locid="M:J#Error.argument" />
3     /// <param name="paramName" type="String" optional="true" mayBeNull="true"></param>
4     /// <param name="message" type="String" optional="true" mayBeNull="true"></param>
5     /// <returns></returns>
6     var e = Function._validateParams(arguments, [
7     {name: "paramName", type: String, mayBeNull: true, optional: true},
8     {name: "message", type: String, mayBeNull: true, optional: true}
9     ]);
10    if (e) throw e;
11    var displayMessage = "Sys.ArgumentException: " + (message ? message : Sys.Res.argument);
12    if (paramName) {
13      displayMessage += "\n" + String.format(Sys.Res.paramName, paramName);
14    }
15    var e = Error.create(displayMessage, { name: "Sys.ArgumentException", paramName: paramName });
16    e.popStackFrame();
17    return e;
18  }
This is the JavaScript source for method argument(paramName, message) from ASP.NET AJAX Library. Full name for this method is Error$argument(paramName, message). It belongs to the class Error, which is in Global (MicrosoftAjax.debug.js) namespace. This source is in MicrosoftAjax.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map