Class DiscoverableSyndicationEndpoint
Represents a discoverable syndication endpoint that is being broadcast by a web resource.
Inheritance
Implements
Inherited Members
Namespace: Argotic.Common
Assembly: Argotic.Common.dll
Syntax
[Serializable]
public class DiscoverableSyndicationEndpoint : IComparable
Constructors
| Improve this Doc View SourceDiscoverableSyndicationEndpoint()
Initializes a new instance of the DiscoverableSyndicationEndpoint class.
Declaration
public DiscoverableSyndicationEndpoint()
DiscoverableSyndicationEndpoint(Uri, String)
Initializes a new instance of the DiscoverableSyndicationEndpoint class using the supplied System.Uri and MIME content type.
Declaration
public DiscoverableSyndicationEndpoint(Uri source, string contentType)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | source | A System.Uri that represents the Uniform Resource Locator (URL) of the syndication endpoint. |
System.String | contentType | The MIME content type that the syndicated resource conforms to. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
System.ArgumentNullException | The |
System.ArgumentNullException | The |
DiscoverableSyndicationEndpoint(Uri, String, String)
Initializes a new instance of the DiscoverableSyndicationEndpoint class using the supplied System.Uri, MIME content type and title.
Declaration
public DiscoverableSyndicationEndpoint(Uri source, string contentType, string title)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | source | A System.Uri that represents the Uniform Resource Locator (URL) of the syndication endpoint. |
System.String | contentType | The MIME content type that the syndicated resource conforms to. |
System.String | title | The title of the syndication endpoint. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
System.ArgumentNullException | The |
System.ArgumentNullException | The |
Properties
| Improve this Doc View SourceContentFormat
Gets the SyndicationContentFormat of the syndication endpoint.
Declaration
public SyndicationContentFormat ContentFormat { get; }
Property Value
Type | Description |
---|---|
SyndicationContentFormat | A SyndicationContentFormat enumeration value that indicates the syndication content format that the auto-discoverable syndicated content conforms to. If a format cannot be determined for the ContentType, returns None. |
Remarks
The syndication content format is determined based upon the ContentType of the current instance.
ContentType
Gets or sets the MIME content type of the syndication endpoint.
Declaration
public string ContentType { get; set; }
Property Value
Type | Description |
---|---|
System.String | The registered MIME type of the syndication endpoint. |
Remarks
See http://www.iana.org/assignments/media-types/ for a listing of registered MIME types.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
System.ArgumentNullException | The |
Source
Gets or sets the Uniform Resource Locator (URL) of the syndication endpoint.
Declaration
public Uri Source { get; set; }
Property Value
Type | Description |
---|---|
System.Uri | The System.Uri of the syndication endpoint. |
Remarks
The System.Urican be either Relative or Absolute. It is up to the caller to resolve the endpoint source as appropriate.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
Title
Gets or sets the title of the syndication endpoint.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String | The title of the syndication endpoint. |
Remarks
This property will be empty if no title attribute was assigned to the syndication endpoint link.
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 |
CreateNavigator()
Initializes a read-only System.Xml.XPath.XPathNavigator object for navigating through the auto-discoverable syndicated content located at the Source.
Declaration
public XPathNavigator CreateNavigator()
Returns
Type | Description |
---|---|
System.Xml.XPath.XPathNavigator | A read-only System.Xml.XPath.XPathNavigator object for navigating the auto-discoverable syndicated content. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The Source is a null reference (Nothing in Visual Basic). |
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
ToString()
Returns a System.String that represents the current DiscoverableSyndicationEndpoint.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current DiscoverableSyndicationEndpoint. |
Overrides
Remarks
This method returns the XHTML representation for the current instance.
Operators
| Improve this Doc View SourceEquality(DiscoverableSyndicationEndpoint, DiscoverableSyndicationEndpoint)
Determines if operands are equal.
Declaration
public static bool operator ==(DiscoverableSyndicationEndpoint first, DiscoverableSyndicationEndpoint second)
Parameters
Type | Name | Description |
---|---|---|
DiscoverableSyndicationEndpoint | first | Operand to be compared. |
DiscoverableSyndicationEndpoint | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if the values of its operands are equal, otherwise; false. |
GreaterThan(DiscoverableSyndicationEndpoint, DiscoverableSyndicationEndpoint)
Determines if first operand is greater than second operand.
Declaration
public static bool operator>(DiscoverableSyndicationEndpoint first, DiscoverableSyndicationEndpoint second)
Parameters
Type | Name | Description |
---|---|---|
DiscoverableSyndicationEndpoint | first | Operand to be compared. |
DiscoverableSyndicationEndpoint | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if the first operand is greater than the second, otherwise; false. |
Inequality(DiscoverableSyndicationEndpoint, DiscoverableSyndicationEndpoint)
Determines if operands are not equal.
Declaration
public static bool operator !=(DiscoverableSyndicationEndpoint first, DiscoverableSyndicationEndpoint second)
Parameters
Type | Name | Description |
---|---|---|
DiscoverableSyndicationEndpoint | first | Operand to be compared. |
DiscoverableSyndicationEndpoint | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | false if its operands are equal, otherwise; true. |
LessThan(DiscoverableSyndicationEndpoint, DiscoverableSyndicationEndpoint)
Determines if first operand is less than second operand.
Declaration
public static bool operator <(DiscoverableSyndicationEndpoint first, DiscoverableSyndicationEndpoint second)
Parameters
Type | Name | Description |
---|---|---|
DiscoverableSyndicationEndpoint | first | Operand to be compared. |
DiscoverableSyndicationEndpoint | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if the first operand is less than the second, otherwise; false. |