VBTrain.Net Documentation

LmsApi2.SetDevProperty Method

Sets a property of an LmsApi2 object.

Public Sub SetDevProperty( _
ByVal propName As String, _
ByVal propValue As String _
)

Parameters

propName
Name of the property.
propValue
Value of the property.

Remarks

Use SetDevProperty to store session properties to an LmsApi object, GetDevProperty to retrieve a stored value, and RemoveDevProperty to remove a stored property.

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

If Not IsNothing(apiObject) Then
   Dim studentName As String = Request("studentName_hField")
   apiObject.SetDevProperty("studentName", studentName)
End If

See Also

LmsApi2 Class | LmsApi Members | RemoveDevProperty| GetDevProperty