Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure Active Directory用户将Json反序列化为列表模型_Azure_Json Deserialization_Azure Active Directory - Fatal编程技术网

Azure Active Directory用户将Json反序列化为列表模型

Azure Active Directory用户将Json反序列化为列表模型,azure,json-deserialization,azure-active-directory,Azure,Json Deserialization,Azure Active Directory,我想将Json结果反序列化到一个模型中。我所看到的是在身份验证中,在发布数据并接收到用户u后,从AD中获取单个用户,用户u可以通过 UserProfile profile = JsonConvert.DeserializeObject<UserProfile>(responseString); 我想做的是反序列化包含用户列表的Jsonresult。我应该写什么来代替UserProfile?Azuree Active Directory是否有任何用户列表模型?我尝试了AzureTes

我想将Json结果反序列化到一个模型中。我所看到的是在身份验证中,在发布数据并接收到用户u后,从AD中获取单个用户,用户u可以通过

UserProfile profile = JsonConvert.DeserializeObject<UserProfile>(responseString);
我想做的是反序列化包含用户列表的Jsonresult。我应该写什么来代替UserProfile?Azuree Active Directory是否有任何用户列表模型?我尝试了AzureTest.Models.Users,但它返回null,因此我们可以说它不起作用:/

谢谢

答案如下:

致以最良好的祝愿

F.奥格尔

。请添加广告附加说明,可能是与最相关部分的引用。
public class UserProfile
{
    public string DisplayName { get; set; }
    public string GivenName { get; set; }
    public string Surname { get; set; }
}