Class JavaScriptLibrary
Inheritance
Namespace: DotNetNuke.Framework.JavaScriptLibraries
Assembly: DotNetNuke.dll
Syntax
public class JavaScriptLibrary : IXmlSerializable
Properties
| Improve this Doc View SourceCDNPath
Gets or sets location of the content delivery network (CDN) where the script is loaded from when CDN has been enabled in host.
Declaration
public string CDNPath { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
FileName
Gets or sets filename of the script in the filesystem.
Declaration
public string FileName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
JavaScriptLibraryID
Gets or sets unique identifier id for a javscript library package.
Declaration
public int JavaScriptLibraryID { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
LibraryName
Gets or sets name of the javscript library package (used when requesting library).
Declaration
public string LibraryName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ObjectName
Gets or sets main object (where relevant) of the javscript library package used to generate the local file fallback code in the case where the CDN file is not available.
Declaration
public string ObjectName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
PackageID
Gets or sets package id associated with the javscript library package.
Declaration
public int PackageID { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
PreferredScriptLocation
Gets or sets position in the page the script reference is injected.
Declaration
public ScriptLocation PreferredScriptLocation { get; set; }
Property Value
| Type | Description |
|---|---|
| ScriptLocation |
Version
Gets or sets version of the the javscript library package from the database.
Declaration
public Version Version { get; set; }
Property Value
| Type | Description |
|---|---|
| Version |
Methods
| Improve this Doc View SourceGetSchema()
Declaration
public XmlSchema GetSchema()
Returns
| Type | Description |
|---|---|
| XmlSchema |
ReadXml(XmlReader)
Reads a JavaScriptLibrary from an XmlReader.
Declaration
public void ReadXml(XmlReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| XmlReader | reader | The XmlReader to use. |
WriteXml(XmlWriter)
Writes a JavaScriptLibrary to an XmlWriter.
Declaration
public void WriteXml(XmlWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| XmlWriter | writer | The XmlWriter to use. |