Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Load Method
 Load(TSyndicationFeed) Method (XmlR...
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 11/.NET Framework 4.5

Other versions are also available for the following:
.NET Framework Class Library
SyndicationFeed..::.Load<(Of <(TSyndicationFeed>)>) Method (XmlReader)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Loads a SyndicationFeed-derived instance from the specified XmlReader.

Namespace:  System.ServiceModel.Syndication
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
Visual Basic
Public Shared Function Load(Of TSyndicationFeed As {New, SyndicationFeed}) ( _
	reader As XmlReader _
) As TSyndicationFeed
C#
public static TSyndicationFeed Load<TSyndicationFeed>(
	XmlReader reader
)
where TSyndicationFeed : new(), SyndicationFeed
Visual C++
public:
generic<typename TSyndicationFeed>
where TSyndicationFeed : gcnew(), SyndicationFeed
static TSyndicationFeed Load(
	XmlReader^ reader
)
F#
static member Load : 
        reader:XmlReader -> 'TSyndicationFeed  when 'TSyndicationFeed : new() and SyndicationFeed

Type Parameters

TSyndicationFeed

The syndication feed type.

Parameters

reader
Type: System.Xml..::.XmlReader

The XmlReader to read from.

Return Value

Type: TSyndicationFeed
A SyndicationFeed-derived instance that contains the feed.
ExceptionCondition
XmlException

Invalid XML encountered during read.

Use this method when you are loading a syndication item into a class derived from SyndicationFeed.

The following code shows how to load a syndication feed from an XmlReader instance.

Visual Basic
Dim reader As XmlReader = XmlReader.Create("http:'localhost/feeds/serializedFeed.xml")
Dim feed As SyndicationFeed = SyndicationFeed.Load(reader)

C#
XmlReader reader = XmlReader.Create("http://localhost/feeds/serializedFeed.xml");
SyndicationFeed feed = SyndicationFeed.Load(reader);

.NET Framework

Supported in: 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8 Consumer Preview, Windows Server 8 Beta, Windows 7, Windows Server 2008 SP2, Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker