Redigera

Dela via


SyndicationLink.Length Property

Definition

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.

Applies to