Struct ApiLink<TLinkedResource>
A link to an API resource of a speicifc type.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: EC.ProductsAndPricing.ServiceContract
Assembly: EC.ProductsAndPricing.ServiceContract.dll
Syntax
public struct ApiLink<TLinkedResource> : IApiLink, IXmlSerializable
Type Parameters
Name | Description |
---|---|
TLinkedResource | The type of the resource returned by the api at this address |
Constructors
View SourceApiLink(Uri)
Create a api link.
Declaration
public ApiLink(Uri url)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | url | The linked to resource. |
Properties
View SourceIsEmpty
Declaration
public bool IsEmpty { get; }
Property Type:
System.Boolean
Implements
View SourceLinkedResource
Declaration
public Type LinkedResource { get; }
Property Type:
System.Type
Implements
View SourceUrl
Declaration
public Uri Url { get; }
Property Type:
System.Uri
Implements
Methods
View SourceParse(String)
Parse a url string.
Declaration
public static ApiLink<TLinkedResource> Parse(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | the url string to parse |
Returns
Type | Description |
---|---|
ApiLink<TLinkedResource> | The parsed value |
ToString()
Format the api link as a url.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The url as a string. |
Overrides
System.ValueType.ToString()
Explicit Interface Implementations
View SourceIXmlSerializable.GetSchema()
Declaration
XmlSchema IXmlSerializable.GetSchema()
Returns
Type | Description |
---|---|
System.Xml.Schema.XmlSchema |
Implements
System.Xml.Serialization.IXmlSerializable.GetSchema()
View Source
IXmlSerializable.ReadXml(XmlReader)
Declaration
void IXmlSerializable.ReadXml(XmlReader reader)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader |
Implements
System.Xml.Serialization.IXmlSerializable.ReadXml(System.Xml.XmlReader)
View Source
IXmlSerializable.WriteXml(XmlWriter)
Declaration
void IXmlSerializable.WriteXml(XmlWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer |
Implements
System.Xml.Serialization.IXmlSerializable.WriteXml(System.Xml.XmlWriter)