using Azure::Data::Table and pagination, 'Values' is not accessible (C++ CLR)

cebuhax0r 66 Reputation points
2023-07-12T04:24:44.73+00:00

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
User's image

and even running the application without the line and watch the variable, it does show that it has values and it can be accessed
User's image

Same error with ContinuationToken, even though they are a property with "get", I still cant access it.

what is wrong?

Developer technologies C++
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.