VBTrain.Net Documentation

LmsApi2.GetDevPropertiesTable Function

Returns a hashtable of all LmsApi2 properties set with the SetDevProperty method. The property names are the keys and the property values are the values of the hashtable.

Public Function GetDevPropertiesTable() As Hashtable

Remarks

You can use the LmsApi methods SetDevProperty and GetDevProperty to store and retrieve properties of the LmsApi object. The GetDevPropertiesTable function returns a hashtable of all the properties that have been set.

Example

The following example assumes the VBTrain.WebTracking namespace has been imported. After executing this example, storedProps would contain two key-value pairs and numProps would be 2.

[Visual Basic]
Dim studentName As String = "Doe, John"
Dim pageName As String = "Page_4"
Dim apiObject As New LmsApi2()

apiObject.SetDevProperty("studentName", studentName)
apiObject.SetDevProperty("lessonLocation", pageName)
Dim storedProps As Hashtable = apiObject.GetDevPropertiesTable
Dim numProps As Integer = storedProps.Count
			

See Also

LmsApi2 Class | LmsApi Members | GetDevPropertiesCount | GetDevPropertiesList