LookupScriptRegistration.RegisterLookupScripts method
namespace: Serenity.Web assembly: Serenity.Net.Web
Creates and registers dynamic LookupScript
objects for classes with LookupScriptAttribute
public static void RegisterLookupScripts(IDynamicScriptManager scriptManager,
ITypeSource typeSource, IServiceProvider serviceProvider)
parameter | description |
---|---|
scriptManager | Dynamic script manager |
typeSource | Type source |
serviceProvider | Service provider |
Exceptions
exception | condition |
---|---|
ArgumentNullException | Script manager, type source or service provider is null |
InvalidOperationException | A custom type has LookupScriptAttribute but it does not derive from the LookupScript class. |
See Also
- interface IDynamicScriptManager
- interface ITypeSource
- class LookupScriptRegistration