VBTrain.Net Documentation

LmsApi Members

LmsApi overview

Public Constructors

public constructorLmsApi Constructor Initializes a new instance of the LmsApi2 class.

Public Properties

public propertyEnabled Enables or disables JavaScript returns from LmsApi GetJs methods (e.g., GetJsApiLocate).
public propertyScormVersion Specifies whether to use SCORM version 1.2 or 1.3 (also known as version 2004).

Public Methods

public methodGetDevPropertiesCount

Returns the number of properties that have been set for an LmsApi object using the SetDevProperty method.

public methodGetDevPropertiesList Returns a zero-based, one-dimensional string array of the property names (one property name per cell) that have been set for an LmsApi object using the SetDevProperty method.
public methodGetDevPropertiesTable Returns a hashtable of all LmsApi properties that were set with the SetDevProperty method. The property names are the keys and the property values are the values of the hashtable.
public methodGetDevProperty Returns the value of an LmsApi property that was previously set using the SetDevProperty method.
public methodGetJsApiLocate Overloaded. Returns JavaScript that locates the SCORM API object.
public methodGetJsCommit Overloaded. Returns JavaScript that calls the SCORM function Commit (1.3) or LMSCommit (1.2).
public methodGetJsFinish Overloaded. Returns JavaScript that calls the SCORM function LMSFinish (1.2) or Terminate (1.3).
public methodGetJsForLogoff Returns JavaScript to handle various logoff options depending on parameter values. The returned JavaScript may include SCORM calls to both LMSCommit and LMSFinish (1.2), Commit and Terminate (1.3), and a command to close the SCO window. Calls may be placed inside a JavaScript function.
public methodGetJsGetDiagnostic

Returns JavaScript that calls the SCORM function LMSGetDiagnostic (1.2) or GetDiagnostic (1.3).

public methodGetJsGetErrorString

Overloaded. Returns JavaScript that calls the SCORM function LMSGetErrorString (1.2) or GetErrorString (1.3).

public methodGetJsGetLastError Overloaded. Returns JavaScript that calls the SCORM function LMSGetLastError (1.2) or GetLastError (1.3).
public methodGetJsGetLessonLocationAndChangeInFrame Returns JavaScript to call the appropriate SCORM GetValue function to get the cmi.core.lesson_location (1.2) or cmi.location (1.3) value, and then changes the location of the specified frame to that value.
public methodGetJsGetValue Overloaded. Returns JavaScript that calls the SCORM function LMSGetValue (1.2) or GetValue (1.3).
public methodGetJsInitialize Overloaded. Returns JavaScript that calls the SCORM function LMSInitialize (1.2) or Initialize (1.3), or returns 0 if GetJsInitialize has already been called during the current session.
public methodGetJsSetValue Overloaded. Returns JavaScript that calls the SCORM function LMSSetValue (1.2) or SetValue (1.3).
public methodGetJsTerminate Overloaded. Returns JavaScript that calls the SCORM function Terminate (1.3) or LmsFinish (1.2).
public methodRemoveDevProperty Removes an LmsApi session property.
public methodResetApi Resets the LmsApi2.
public methodSetDevProperty Sets a property of an LmsApi object.

See Also

LmsApi2 Class