Class TrackbackResponse
Represents the response to a Trackback ping request.
Inheritance
Implements
Inherited Members
Namespace: Argotic.Net
Assembly: Argotic.Core.dll
Syntax
[Serializable]
public class TrackbackResponse : IComparable
Examples
Constructors
| Improve this Doc View SourceTrackbackResponse()
Initializes a new instance of the TrackbackResponse class.
Declaration
public TrackbackResponse()
Remarks
The default instance of the TrackbackResponse class represents the response to a succesful ping request.
TrackbackResponse(WebResponse)
Initializes a new instance of the TrackbackResponse class using the supplied System.Net.WebResponse.
Declaration
public TrackbackResponse(WebResponse response)
Parameters
Type | Name | Description |
---|---|---|
System.Net.WebResponse | response | A System.Net.WebResponse object that represents the Trackback server's response to the remote procedure call. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
System.ArgumentException | The |
System.ArgumentException | The |
System.Xml.XmlException | The |
TrackbackResponse(String)
Initializes a new instance of the TrackbackResponse class using the supplied error message.
Declaration
public TrackbackResponse(string errorMessage)
Parameters
Type | Name | Description |
---|---|---|
System.String | errorMessage | Information about cause of the Trackback ping request failure. |
Remarks
The errorMessage
must be provided in a UTF-8 character encoding.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
System.ArgumentNullException | The |
Properties
| Improve this Doc View SourceErrorMessage
Gets information about cause of the Trackback ping request failure.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
System.String | Information about the cause of the Trackback ping request failure. The default value is an empty string. |
HasError
Gets a value indicating if the the Trackback ping request failed.
Declaration
public bool HasError { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the Trackback ping response contains an error indicator; otherwise false. The default value is false. |
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(XPathNavigator)
Loads this TrackbackResponse using the supplied System.Xml.XPath.XPathNavigator.
Declaration
public bool Load(XPathNavigator source)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XPath.XPathNavigator | source | The System.Xml.XPath.XPathNavigator to extract information from. |
Returns
Type | Description |
---|---|
System.Boolean | true if the TrackbackResponse was initialized using the supplied |
Remarks
This method expects the supplied source
to be positioned on the XML element that represents a TrackbackResponse.
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 XML representation for the current instance.
WriteTo(XmlWriter)
Saves the current TrackbackResponse to the specified System.Xml.XmlWriter.
Declaration
public void WriteTo(XmlWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | The System.Xml.XmlWriter to which you want to save. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
Operators
| Improve this Doc View SourceEquality(TrackbackResponse, TrackbackResponse)
Determines if operands are equal.
Declaration
public static bool operator ==(TrackbackResponse first, TrackbackResponse second)
Parameters
Type | Name | Description |
---|---|---|
TrackbackResponse | first | Operand to be compared. |
TrackbackResponse | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if the values of its operands are equal, otherwise; false. |
GreaterThan(TrackbackResponse, TrackbackResponse)
Determines if first operand is greater than second operand.
Declaration
public static bool operator>(TrackbackResponse first, TrackbackResponse second)
Parameters
Type | Name | Description |
---|---|---|
TrackbackResponse | first | Operand to be compared. |
TrackbackResponse | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if the first operand is greater than the second, otherwise; false. |
Inequality(TrackbackResponse, TrackbackResponse)
Determines if operands are not equal.
Declaration
public static bool operator !=(TrackbackResponse first, TrackbackResponse second)
Parameters
Type | Name | Description |
---|---|---|
TrackbackResponse | first | Operand to be compared. |
TrackbackResponse | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | false if its operands are equal, otherwise; true. |
LessThan(TrackbackResponse, TrackbackResponse)
Determines if first operand is less than second operand.
Declaration
public static bool operator <(TrackbackResponse first, TrackbackResponse second)
Parameters
Type | Name | Description |
---|---|---|
TrackbackResponse | first | Operand to be compared. |
TrackbackResponse | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if the first operand is less than the second, otherwise; false. |