Interface IJavaScriptLibraryController
Namespace: DotNetNuke.Framework.JavaScriptLibraries
Assembly: DotNetNuke.dll
Syntax
public interface IJavaScriptLibraryController
Methods
| Improve this Doc View SourceDeleteLibrary(JavaScriptLibrary)
Delete the library reference from the database.
Declaration
void DeleteLibrary(JavaScriptLibrary library)
Parameters
Type | Name | Description |
---|---|---|
JavaScriptLibrary | library | Library to be deleted. |
GetLibraries()
Gets all of the JavaScriptLibrary instances.
Declaration
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
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
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
void SaveLibrary(JavaScriptLibrary library)
Parameters
Type | Name | Description |
---|---|---|
JavaScriptLibrary | library | Library to be saved. |