VBTrain.Net Documentation

LmsApi2.GetDevPropertiesCount Function

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

Public Function GetDevPropertiesCount() As Integer

Remarks

You can use the LmsApi methods SetDevProperty and GetDevProperty to store and retrieve properties of the LmsApi object. The GetDevPropertiesCount function returns a count of how many such properties are currently stored.

Example

The following example assumes the VBTrain.WebTracking namespace has been imported. After executing this example, numProps would contain 1.

[Visual Basic]
Dim apiObject As New LmsApi2()
apiObject.SetDevProperty("studentName", "Doe, John")
Dim numProps As Integer = apiObject.GetDevPropertiesCount()

See Also

LmsApi2 Class | LmsApi Members | GetDevPropertiesList | GetDevPropertiesTable