SyndicationLink.Length Propriedade
Definição
Obtém ou define o comprimento do recurso vinculado em bytes.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
Valor da propriedade
O comprimento do recurso vinculado.The length of the linked resource.
Exemplos
O código a seguir mostra como definir o comprimento de um link de agregação.The following code shows how to set the length of a syndication link.
O XML a seguir mostra como a Length propriedade é serializada para Atom 1,0.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" />
O XML a seguir mostra como a Length propriedade é serializada para RSS 2,0.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" />
Comentários
Quando serializado para Atom 1,0 Length , a propriedade é gravada como um length
atributo no <link>
elemento.When serialized to Atom 1.0 the Length property is written as a length
attribute in the <link>
element.
Quando serializado para RSS 2,0 esse valor é escrito como o length
atributo do <a10:link>
elemento.When serialized to RSS 2.0 this value is written as the length
attribute of the <a10:link>
element.