rootcoder
rootcoder

Reputation: 187

Retrieve all values from a column using PARSE.com in .NET Windows 8 store apps

I have a class in my PARSE database as "Categories" with column name "category". The "category" column contains some values say like "sports","fun" etc. Now i need to retrieve all the values from "category" column.So that I could show the values in a listbox in my windows 8 app.I checked the PARSE.com .NET Guide and used the follwing code

ParseQuery<ParseObject> query = ParseObject.GetQuery("category"); .Now how to get all the values of the category class and populate it in listbox?Hope I explained my question

Upvotes: 0

Views: 284

Answers (2)

user3073025
user3073025

Reputation: 1

Try the following code:

ParseQuery<ParseObject> query = ParseObject.GetQuery("Categories");
IEnumerable<ParseObject> parseObjects = query.FindAsync();

Upvotes: 0

Timothy Walters
Timothy Walters

Reputation: 16874

Try this:

ParseQuery<ParseObject> query = ParseObject.GetQuery("Categories");
ParseObject categories = await query.GetAsync("categoriesID");
var categoryList = categories.Get<IList<string>>("category");

Upvotes: 1

Related Questions