{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 'prototype.registerInterface(typeName)'
Method: prototype.registerInterface(typeName)
Method Full Name:     Type$registerInterface(typeName)
Class: Type
Namespace: Global (MicrosoftAjax.debug.js)
Source File: MicrosoftAjax.debug.js
1   Type.prototype.registerInterface = function Type$registerInterface(typeName) {
2     /// <summary locid="M:J#Type.registerInterface" />
3     /// <param name="typeName" type="String"></param>
4     /// <returns type="Type"></returns>
5     var e = Function._validateParams(arguments, [
6     {name: "typeName", type: String}
7     ]);
8     if (e) throw e;
9     if (!Type.__fullyQualifiedIdentifierRegExp.test(typeName)) throw Error.argument('typeName', Sys.Res.notATypeName);
10    var parsedName;
11    try {
12      parsedName = eval(typeName);
13    }
14    catch(e) {
15      throw Error.argument('typeName', Sys.Res.argumentTypeName);
16    }
17    if (parsedName !== this) throw Error.argument('typeName', Sys.Res.badTypeName);
18    if (Sys.__registeredTypes[typeName]) throw Error.invalidOperation(String.format(Sys.Res.typeRegisteredTwice, typeName));
19    Sys.__upperCaseTypes[typeName.toUpperCase()] = this;
20    this.prototype.constructor = this;
21    this.__typeName = typeName;
22    this.__interface = true;
23    Sys.__registeredTypes[typeName] = true;
24    return this;
25  }
This is the JavaScript source for method prototype.registerInterface(typeName) from ASP.NET AJAX Library. Full name for this method is Type$registerInterface(typeName). It belongs to the class Type, 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