• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Interface IJavaScriptLibraryController

Namespace: DotNetNuke.Framework.JavaScriptLibraries
Assembly: DotNetNuke.dll
Syntax
public interface IJavaScriptLibraryController

Methods

| Improve this Doc View Source

DeleteLibrary(JavaScriptLibrary)

Delete the library reference from the database.

Declaration
void DeleteLibrary(JavaScriptLibrary library)
Parameters
Type Name Description
JavaScriptLibrary library

Library to be deleted.

| Improve this Doc View Source

GetLibraries()

Gets all of the JavaScriptLibrary instances.

Declaration
IEnumerable<JavaScriptLibrary> GetLibraries()
Returns
Type Description
IEnumerable<JavaScriptLibrary>

A sequence of JavaScriptLibrary instances.

| Improve this Doc View Source

GetLibraries(Func<JavaScriptLibrary, Boolean>)

Gets all of the JavaScriptLibrary instances matching the given predicate.

Declaration
IEnumerable<JavaScriptLibrary> GetLibraries(Func<JavaScriptLibrary, bool> predicate)
Parameters
Type Name Description
Func<JavaScriptLibrary, System.Boolean> predicate

A function used to filter the library.

Returns
Type Description
IEnumerable<JavaScriptLibrary>

A sequence of JavaScriptLibrary instances.

Examples

JavaScriptLibraryController.Instance.GetLibraries(l => string.Equals(l.LibraryName, "Knockout", StringComparison.OrdinalIgnoreCase)).

| Improve this Doc View Source

GetLibrary(Func<JavaScriptLibrary, Boolean>)

Get information about the latest version of a JavaScriptLibrary that matches the given predicate.

Declaration
JavaScriptLibrary GetLibrary(Func<JavaScriptLibrary, bool> predicate)
Parameters
Type Name Description
Func<JavaScriptLibrary, System.Boolean> predicate

A function used to filter the library.

Returns
Type Description
JavaScriptLibrary

The highest version JavaScriptLibrary instance that matches the predicate, or null if no library matches.

Examples

JavaScriptLibraryController.Instance.GetLibrary(l => string.Equals(l.LibraryName, "Knockout", StringComparison.OrdinalIgnoreCase)).

| Improve this Doc View Source

SaveLibrary(JavaScriptLibrary)

Save a library to the database.

Declaration
void SaveLibrary(JavaScriptLibrary library)
Parameters
Type Name Description
JavaScriptLibrary library

Library to be saved.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS