Share via


SyndicationElementExtension.GetObject<TExtension> Method (XmlSerializer)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the object that represents the element extension.

Namespace:  System.ServiceModel.Syndication
Assembly:  System.ServiceModel.Syndication (in System.ServiceModel.Syndication.dll)

Syntax

'Declaration
Public Function GetObject(Of TExtension) ( _
    serializer As XmlSerializer _
) As TExtension
public TExtension GetObject<TExtension>(
    XmlSerializer serializer
)

Type Parameters

  • TExtension
    The type of the extension to retrieve.

Parameters

Return Value

Type: TExtension
An object of the specified type that contains the element extension.

Exceptions

Exception Condition
InvalidOperationException

The input XML cannot be deserialized into the requested type.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.