Class TrackbackMessage
Represents a Trackback ping request that can be sent using the TrackbackClient class.
Inheritance
Implements
Inherited Members
Namespace: Argotic.Net
Assembly: Argotic.Core.dll
Syntax
[Serializable]
public class TrackbackMessage : IComparable
Examples
Constructors
| Improve this Doc View SourceTrackbackMessage()
Initializes a new instance of the TrackbackMessage class.
Declaration
public TrackbackMessage()
TrackbackMessage(Uri)
Initializes a new instance of the TrackbackMessage class using the supplied System.Uri.
Declaration
public TrackbackMessage(Uri permalink)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | permalink | A System.Uri that represents the permalink for the entry. |
Remarks
The permalink
should point as closely as possible to the actual entry on the HTML page, as it will be used when linking to the entry in question.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
Properties
| Improve this Doc View SourceEncoding
Gets or sets the Encoding of this message.
Declaration
public Encoding Encoding { get; set; }
Property Value
Type | Description |
---|---|
System.Text.Encoding | A Encoding that specifies the character encoding of this message. The default value is System.Text.UTF8Encoding. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
Excerpt
Gets or sets an excerpt for the entry.
Declaration
public string Excerpt { get; set; }
Property Value
Type | Description |
---|---|
System.String | An excerpt of the entry. |
Remarks
The excerpt must be in the character encoding specified by the Encoding property.
Permalink
Gets or sets the permalink for the entry.
Declaration
public Uri Permalink { get; set; }
Property Value
Type | Description |
---|---|
System.Uri | A System.Uri that represents the permalink for the entry. |
Remarks
The permalink should point as closely as possible to the actual entry on the HTML page, as it will be used when linking to the entry in question.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
Title
Gets or sets the title of the entry.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String | The title of the entry. |
Remarks
The title must be in the character encoding specified by the Encoding property.
WeblogName
Gets or sets the name of the weblog to which the entry was posted.
Declaration
public string WeblogName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the weblog to which the entry was posted. |
Remarks
The blog name must be in the character encoding specified by the Encoding property.
Methods
| Improve this Doc View SourceCompareTo(Object)
Compares the current instance with another object of the same type.
Declaration
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | An object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Int32 | A 32-bit signed integer that indicates the relative order of the objects being compared. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The |
Equals(Object)
Determines whether the specified System.Object is equal to the current instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified System.Object is equal to the current instance; otherwise, false. |
Overrides
GetHashCode()
Returns a hash code for the current instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A 32-bit signed integer hash code. |
Overrides
Load(NameValueCollection)
Loads this TrackbackMessage using the supplied System.Collections.Specialized.NameValueCollection.
Declaration
public bool Load(NameValueCollection source)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Specialized.NameValueCollection | source | The System.Collections.Specialized.NameValueCollection to extract information from. |
Returns
Type | Description |
---|---|
System.Boolean | true if the TrackbackMessage was initialized using the supplied |
Remarks
This method expects the supplied source
to be the
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
ToString()
Returns a System.String that represents the current TrackbackMessage.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current TrackbackMessage. |
Overrides
Remarks
This method returns the URL-encoded representation for the current instance.
WriteTo(StreamWriter)
Saves the current TrackbackMessage to the specified System.IO.StreamWriter.
Declaration
public void WriteTo(StreamWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.IO.StreamWriter | writer | The System.IO.StreamWriter to which you want to save. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
Operators
| Improve this Doc View SourceEquality(TrackbackMessage, TrackbackMessage)
Determines if operands are equal.
Declaration
public static bool operator ==(TrackbackMessage first, TrackbackMessage second)
Parameters
Type | Name | Description |
---|---|---|
TrackbackMessage | first | Operand to be compared. |
TrackbackMessage | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if the values of its operands are equal, otherwise; false. |
GreaterThan(TrackbackMessage, TrackbackMessage)
Determines if first operand is greater than second operand.
Declaration
public static bool operator>(TrackbackMessage first, TrackbackMessage second)
Parameters
Type | Name | Description |
---|---|---|
TrackbackMessage | first | Operand to be compared. |
TrackbackMessage | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if the first operand is greater than the second, otherwise; false. |
Inequality(TrackbackMessage, TrackbackMessage)
Determines if operands are not equal.
Declaration
public static bool operator !=(TrackbackMessage first, TrackbackMessage second)
Parameters
Type | Name | Description |
---|---|---|
TrackbackMessage | first | Operand to be compared. |
TrackbackMessage | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | false if its operands are equal, otherwise; true. |
LessThan(TrackbackMessage, TrackbackMessage)
Determines if first operand is less than second operand.
Declaration
public static bool operator <(TrackbackMessage first, TrackbackMessage second)
Parameters
Type | Name | Description |
---|---|---|
TrackbackMessage | first | Operand to be compared. |
TrackbackMessage | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if the first operand is less than the second, otherwise; false. |