Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public async Task<IJsonValue> GetTableItems(string tableName, string masterKey, bool disableServerSideScripts)
- {
- // Get mobile service client with the admin filter.
- MobileServiceClient adminMobileService = App.MobileService.WithFilter(new AdminServiceFilter(disableServerSideScripts, masterKey));
- // Get the selected mobile service table.
- IMobileServiceTable mobileServiceTable = this.adminMobileService.GetTable(tableName);
- // Read the first 10 items in this table,
- // With disableServerSideScripts=true it's the actual first 10 rows otherwise it depends on the server side script.
- return await mobileServiceTable.ReadAsync("$top=10");
- }
Add Comment
Please, Sign In to add comment