LookupScriptRegistration.RegisterLookupScripts method

namespace: Serenity.Web   assemblySerenity.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