SyndicationLink.Length Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the length of the linked resource in bytes.
public:
property long Length { long get(); void set(long value); };
public long Length { get; set; }
member this.Length : int64 with get, set
Public Property Length As Long
Property Value
The length of the linked resource.
Examples
The following code shows how to set the length of a syndication link.
The following XML shows how the Length property is serialized to Atom 1.0.
<link customAttribute="value" rel="alternate" type="text/html" title="Link Title" length="1000" href="http://server/link" />
The following XML shows how the Length property is serialized to RSS 2.0.
<a10:link customAttribute="value" rel="alternate" type="text/html" title="Link Title" length="1000" href="http://server/link" />
Remarks
When serialized to Atom 1.0 the Length property is written as a length
attribute in the <link>
element.
When serialized to RSS 2.0 this value is written as the length
attribute of the <a10:link>
element.