lngTotPage = CInt(Fix(Math.Ceiling(CDbl(arr_tenantview.Count) / 15)))
lngTotPage = arr_promotions.Count Mod 3 'Equal to 1 If lngTotPage * 3 <> arr_promotions.Count Then lngTotPage += 1 'Equal to 2 End If
Dim telemetryDataPoint = New Object telemetryDataPoint = New With {Key .Data1 = "ABC1", .Data2 = "ABC2" .Data3 = "ABC3"} Dim messageString = JsonConvert.SerializeObject(telemetryDataPoint)
Private Async Sub UseWebReference() Dim objdef = Nothing Dim fast = GetProperty(wsresult, wsresult(i).Name, objdef) 'WSRESULT IS THE OBJECT THAT CONTAINS DATA AFTER CONSUME FROM WEBREF End Sub Function GetProperty(ByVal obj As Object, ByVal propertyName As String, ByVal defaultValue As Object) As Object Try Dim pi As System.Reflection.PropertyInfo = obj.GetType().GetProperty(propertyName) 'IT RETURN NOTHING HERE ON pi VARIABLE If Not pi Is Nothing Then Return pi.GetValue(obj, Nothing) End If Catch End Try Return defaultValue End Function