Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.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
Youtube api 如何在ASP.NET4.0应用程序中获取Youtube API中的类别名称_Youtube Api_Asp.net 4.0 - Fatal编程技术网

Youtube api 如何在ASP.NET4.0应用程序中获取Youtube API中的类别名称

Youtube api 如何在ASP.NET4.0应用程序中获取Youtube API中的类别名称,youtube-api,asp.net-4.0,Youtube Api,Asp.net 4.0,我已经在asp.net 4.0应用程序中实现了YouTube API。我可以访问除类别之外的所有其他参数 YouTubeRequestSettings settings = new YouTubeRequestSettings(ApplicationName,developerKey,myUserName,myPassword); YouTubeRequest request = new YouTubeRequest(settings); Uri videoEntryUrl = new Uri(

我已经在asp.net 4.0应用程序中实现了YouTube API。我可以访问除类别之外的所有其他参数

YouTubeRequestSettings settings = new YouTubeRequestSettings(ApplicationName,developerKey,myUserName,myPassword);
YouTubeRequest request = new YouTubeRequest(settings);
Uri videoEntryUrl = new Uri("http://gdata.youtube.com/feeds/api/videos/" + YouTubeID + "");
Video objVideo = request.Retrieve<Video>(videoEntryUrl);
var desc= objVideo.Description;
var title= objVideo.Title;
var category= ? ;
如何获取类别

谢谢

好的,就这样

我在路上找到了解决办法

var catValue = objVideo.Tags.ToList<MediaCategory>().FirstOrDefault<MediaCategory>().Value