Class JavaScriptLibraryController
Inheritance
Implements
Inherited Members
Namespace: DotNetNuke.Framework.JavaScriptLibraries
Assembly: DotNetNuke.dll
Syntax
public class JavaScriptLibraryController : ServiceLocator<IJavaScriptLibraryController, JavaScriptLibraryController>, IJavaScriptLibraryController
Methods
| Improve this Doc View SourceDeleteLibrary(JavaScriptLibrary)
Delete the library reference from the database.
Declaration
public void DeleteLibrary(JavaScriptLibrary library)
Parameters
Type | Name | Description |
---|---|---|
JavaScriptLibrary | library | Library to be deleted. |
GetFactory()
Gets the service locator factory.
Declaration
protected override Func<IJavaScriptLibraryController> GetFactory()
Returns
Type | Description |
---|---|
Func<IJavaScriptLibraryController> | A factory function. |
Overrides
GetLibraries()
Gets all of the JavaScriptLibrary instances.
Declaration
public IEnumerable<JavaScriptLibrary> GetLibraries()
Returns
Type | Description |
---|---|
IEnumerable<JavaScriptLibrary> | A sequence of JavaScriptLibrary instances. |
GetLibraries(Func<JavaScriptLibrary, Boolean>)
Gets all of the JavaScriptLibrary instances matching the given predicate
.
Declaration
public 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 SourceGetLibrary(Func<JavaScriptLibrary, Boolean>)
Get information about the latest version of a JavaScriptLibrary that matches the given predicate
.
Declaration
public 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 |
Examples
JavaScriptLibraryController.Instance.GetLibrary(l => string.Equals(l.LibraryName, "Knockout", StringComparison.OrdinalIgnoreCase)).
| Improve this Doc View SourceSaveLibrary(JavaScriptLibrary)
Save a library to the database.
Declaration
public void SaveLibrary(JavaScriptLibrary library)
Parameters
Type | Name | Description |
---|---|---|
JavaScriptLibrary | library | Library to be saved. |