资 源 简 介
Working with trackbacks and pingbacks in .NET
Send Trackback
var trackback = new Trackback();var target_url = new Uri("target_url");var parameters = new LinkbackSendParameters { Title = "title", Excerpt = "excerpt", Url = new Uri("source_url"), BlogName = "blog_name"};var result = trackback.Send(target_url, parameters);
Receive Trackback
var target_url = new Uri("target_url");var trackback = new Trackback();var result = trackback.Receive(Request, target_url);trackback.SendResponse(Response);
Send Pingback
var pingback = new Pingback();var target_url = new Uri("target_url");var parameters = new LinkbackSendParameters{ SourceUrl = new Uri("source_url"), TargetUrl = new Uri("target_url"