Atom10ItemFormatter.ReadFrom(XmlReader) Method
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.
Reads an Atom 1.0 syndication item from the specified XmlReader instance.
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)
Parameters
Examples
The following code shows how to use the ReadFrom(XmlReader) method.
Atom10ItemFormatter itemFormatter = new Atom10ItemFormatter();
XmlReader atomReader = XmlReader.Create("http://Contoso/Feeds/MyFeed/Item");
if (itemFormatter.CanRead(atomReader))
{
itemFormatter.ReadFrom(atomReader);
atomReader.Close();
}
Dim itemFormatter As New Atom10ItemFormatter()
Dim atomReader As XmlReader = XmlReader.Create("http://Contoso/Feeds/MyFeed/Item")
If itemFormatter.CanRead(atomReader) Then
itemFormatter.ReadFrom(atomReader)
atomReader.Close()
End If
Applies to
Surađujte s nama na GitHubu
Izvor za ovaj sadržaj možete pronaći na GitHubu, gdje možete stvarati i pregledavati probleme i zahtjeve za povlačenjem. Dodatne informacije potražite u našem vodiču za suradnike.