3,972 questions
using Azure::Data::Table and pagination, 'Values' is not accessible (C++ CLR)
cebuhax0r
66
Reputation points
I have a code like this
Azure::Pageable<TableEntity^>^ response = table->Query<TableEntity^>(filter, maxPerPage, selection, cancellationToken);
auto pages = response->AsPages(ContinuationToken, maxPerPage);
auto enumerator = pages->GetEnumerator();
while (enumerator->MoveNext())
{
auto current = enumerator->Current;
int count = current->Values->Count; <-- error here
}
and I am getting an error
error C2039: 'get': is not a member of 'Azure::Page<Azure::Data::Tables::TableEntity ^>::Values'
The thing is Values is indeed a property with "get" accessor on it
and even running the application without the line and watch the variable, it does show that it has values and it can be accessed
Same error with ContinuationToken, even though they are a property with "get", I still cant access it.
what is wrong?
Developer technologies C++
Sign in to answer