for (int i = 0; i < webSource.Document.Links.Count;i++ )
{
textBox1.Text += "\r\n" + webSource.Document.Links[i].GetAttribute("href");
}
重点在与使用链接集合links中元素的GetAttribute()方法,并将要取得的元素名称(例如:href)作为参数传输过去
webSource.Document.GetElementsByTagName("META")[1].GetAttribute("content").ToString() ;//获取meta标签哦描述信息内容;