本文整理汇总了C#中Microsoft.Live.LiveConnectClient.Get方法的典型用法代码示例。如果您正苦于以下问题:C# LiveConnectClient.Get方法的具体用法?C# LiveConnectClient.Get怎么用?C# LiveConnectClient.Get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Microsoft.Live.LiveConnectClient
的用法示例。
在下文中一共展示了LiveConnectClient.Get方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadProfile
private async void LoadProfile()
{
LiveConnectClient client = new LiveConnectClient(App.Session);
LiveOperationResult liveOpResult = await client.Get("me");
dynamic dynResult = liveOpResult.Result;
this.txtUserName.Text = dynResult.name;
liveOpResult = await client.Get("me/picture");
dynResult = liveOpResult.Result;
this.imgProfile.Source = new BitmapImage(new Uri(dynResult.location));
}
示例2: GetFilesOrFolders
private async Task<IEnumerable<LiveFileOrFolder>> GetFilesOrFolders(LiveConnectClient client, string queryUrl)
{
var queryResult = await client.Get(queryUrl);
var folders = JsonConvert.DeserializeObject<LiveFileResult>(queryResult.RawResult);
return folders.data;
}
示例3: LoadData
internal async void LoadData()
{
LiveConnectClient client = new LiveConnectClient(App.Session);
LiveOperationResult albumOperationResult = await client.Get("me/albums");
dynamic albumResult = albumOperationResult.Result;
foreach (dynamic album in albumResult.data)
{
var group = new SkyDriveAlbum(album.id, album.name, album.name, @"ms-appx:///Assets/DarkGray.png", album.description);
LiveOperationResult pictureOperationResult = await client.Get(album.id + "/files");
dynamic pictureResult = pictureOperationResult.Result;
foreach (dynamic picture in pictureResult.data)
{
var pictureItem = new SkyDriveFileItem(picture.id, picture.name, picture.name, picture.source, picture.description, picture.description, group);
group.Items.Add(pictureItem);
}
this.ItemGroups.Add(group);
}
}