Sets a property of an LmsApi2 object.
Public Sub SetDevProperty( _
ByVal propName As String, _
ByVal propValue As String _
)
Use SetDevProperty to store session properties to an LmsApi object, GetDevProperty to retrieve a stored value, and RemoveDevProperty to remove a stored property.
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 If Not IsNothing(apiObject) Then Dim studentName As String = Request("studentName_hField") apiObject.SetDevProperty("studentName", studentName) End If
LmsApi2 Class | LmsApi Members | RemoveDevProperty| GetDevProperty