Represents the possible parameters of a trackback ping request.
Namespace:
Argotic.Core.NetAssembly: Argotic.Core (in Argotic.Core)
Version: 2007.3.0.0 (2007.3.0.0)
Syntax
| C# |
|---|
[SerializableAttribute] public class TrackbackMessage : IComparable |
| Visual Basic (Declaration) |
|---|
<SerializableAttribute> _ Public Class TrackbackMessage _ Implements IComparable |
| Visual C++ |
|---|
[SerializableAttribute] public ref class TrackbackMessage : IComparable |
Examples
The following code example demonstrates the usage of TrackbackMessage.
CopyC#
using System; using System.Text; using Argotic.Core.Net; namespace Argotic.Test { public class TrackbackPingMessageCS { public TrackbackPingMessageCS() { //------------------------------------------------------------ // Initialize the trackback client //------------------------------------------------------------ TrackbackClient client = new TrackbackClient(); //------------------------------------------------------------ // Define the trackback ping message to send //------------------------------------------------------------ TrackbackMessage message = new TrackbackMessage(); message.Permalink = new Uri("http://www.bar.com/"); message.Encoding = Encoding.UTF8; message.Title = "Foo Bar"; message.BlogName = "Foo"; message.Excerpt = "My Excerpt"; //------------------------------------------------------------ // Send the trackback ping //------------------------------------------------------------ TrackbackResponse pingResponse; pingResponse = client.Send(new Uri("http://www.example.com/trackback/5"), message); //------------------------------------------------------------ // Determine if trackback ping was sucessful //------------------------------------------------------------ if(pingResponse.HasError) { //------------------------------------------------------------ // Get reason provided for trackback ping failure //------------------------------------------------------------ string reasonForPingFailure = pingResponse.Message; } } } }
