TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pinku
1.4k
292
44.7k
How to get data from a booloean function in vb.net
Oct 1 2019 5:05 AM
I have a method name IsQuotaAvailable. i want to get the DailyAvailableQuota data and show it in the webpage. so how can i fetch this data from this method and send to user interface
public
bool
IsQuotaAvailable(Neo oNeo,
string
request)
{
EdgeQuotaCheckResponse oresponse = MakeOAuthPostQuotacheck(oNeo, GetQuotaCheckURI(), request);
if
(oresponse !=
null
)
{
foreach
(RemainingQuota quota
in
oresponse.Limits)
{
if
(quota.limit_type.ToLower() ==
"daily"
)
{
DailyAvailableQuota = quota.remaining_quota;
}
else
if
(quota.limit_type.ToLower() ==
"monthly"
)
{
MonthlyAvailableQuota = quota.remaining_quota;
}
}
if
( SettingControl.GetBoolean(
"bUIMonthlycheck"
,
false
) && DailyAvailableQuota > 0 && MonthlyAvailableQuota > 0)
{
if
(!SettingControl.GetBoolean(
"bAllowQuotaMailCheck"
,
false
))
{
CheckAndSendQuotaMail(oNeo);
}
return
true
;
}
else
{
return
false
;
}
}
}
Reply
Answers (
3
)
inserting dynamic textbox’s multiple text values to dataTabl
Read and Write Excel Documents Using OLEDB