Compartilhar via


Atom10FeedFormatter.ReadFrom(XmlReader) Método

Definição

Lê um feed de sindicalização Atom 1.0 da instância XmlReader especificada.

public:
 override void ReadFrom(System::Xml::XmlReader ^ reader);
public override void ReadFrom (System.Xml.XmlReader reader);
override this.ReadFrom : System.Xml.XmlReader -> unit
Public Overrides Sub ReadFrom (reader As XmlReader)

Parâmetros

reader
XmlReader

O XmlReader para leitura.

Exemplos

O código a seguir mostra como usar o método ReadFrom(XmlReader).

Atom10FeedFormatter feedFormatter = new Atom10FeedFormatter();
XmlReader atomReader = XmlReader.Create("http://Contoso/Feeds/MyFeed");
if (feedFormatter.CanRead(atomReader))
{
    feedFormatter.ReadFrom(atomReader);
    atomReader.Close();
}
Dim feedFormatter As New Atom10FeedFormatter()
Dim atomReader As XmlReader = XmlReader.Create("http://Contoso/Feeds/MyFeed")
If feedFormatter.CanRead(atomReader) Then
    feedFormatter.ReadFrom(atomReader)
    atomReader.Close()
End If

Aplica-se a