{"action":"reopened","issue":{"url":"https://api.github.com/repos/vknet/vk/issues/293","repository_url":"https://api.github.com/repos/vknet/vk","labels_url":"https://api.github.com/repos/vknet/vk/issues/293/labels{/name}","comments_url":"https://api.github.com/repos/vknet/vk/issues/293/comments","events_url":"https://api.github.com/repos/vknet/vk/issues/293/events","html_url":"https://github.com/vknet/vk/issues/293","id":171951927,"number":293,"title":"Проблема с ProfileFields.All, UsersFields.All","user":{"login":"Masterzx777","id":19427520,"avatar_url":"https://avatars.githubusercontent.com/u/19427520?v=3","gravatar_id":"","url":"https://api.github.com/users/Masterzx777","html_url":"https://github.com/Masterzx777","followers_url":"https://api.github.com/users/Masterzx777/followers","following_url":"https://api.github.com/users/Masterzx777/following{/other_user}","gists_url":"https://api.github.com/users/Masterzx777/gists{/gist_id}","starred_url":"https://api.github.com/users/Masterzx777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Masterzx777/subscriptions","organizations_url":"https://api.github.com/users/Masterzx777/orgs","repos_url":"https://api.github.com/users/Masterzx777/repos","events_url":"https://api.github.com/users/Masterzx777/events{/privacy}","received_events_url":"https://api.github.com/users/Masterzx777/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-18T17:05:39Z","updated_at":"2016-08-19T13:06:32Z","closed_at":null,"body":"Использовал метод **Users.Search**. В сборке из nuget в этом методе [ошибка с токеном](https://yadi.sk/i/dhlq_Y6buKKnc): no access_token passed. Поэтому собирал отсюда, здесь с этим проблем нет.\r\n\r\nДалее делаю запрос с такими параметрами:\r\n```csharp\r\n  var users = Api.Vk.Users.Search( new UserSearchParams\r\n            {\r\n                Query = \"Вася\",\r\n                Fields = ProfileFields.All // Здесь исключение: Ссылка на объект не указывает на экземпляр объекта\r\n            });\r\n```\r\n[И получаю исключение.](https://yadi.sk/i/8nDsUnzKuKKrc)\r\n\r\nДелаю запрос с другими параметрами:\r\n```csharp\r\n  var users = Api.Vk.Users.Search( new UserSearchParams\r\n            {\r\n                Query = \"Вася\",\r\n                Fields = ProfileFields.City \r\n            });\r\n```\r\n[Отрабатывает как надо.](https://yadi.sk/i/xq5w0zVjuKKtS)\r\n\r\nИ ещё вопрос такой, я так понимаю в **Fields** нельзя указать несколько конкретных параметров? Получается либо один, либо все?"}}
{"actor":{"display_login":"CaCTuCaTu4ECKuu"}}