VBTrain.Net Documentation

LmsApi2.ResetApi Method

Resets the LmsApi2.

Public Sub ResetApi( _ 
ByVal removeAllProps As Boolean
)

Parameters

removeAllProps
A Boolean value indicating whether or not to remove all properties from the LmsApi that were set using SetDevProperty.

Remarks

Use the ResetApi method to:

Example

The following example assumes the VBTrain.WebTracking namespace has been imported. In this example, the LmsApi for the session has been stored as a property (LmsApiObject) of the current class.

[Visual Basic]
Dim apiObject As LmsApi2 = Me.LmsApiObject

apiObject.ResetApi(True)

See Also

LmsApi2 Class | LmsApi Members | GetJsInitialize | RemoveDevProperty | SetDevProperty| GetDevProperty