SyndicationElementExtension.GetObject Method

Definition

Gets the object that represents the element extension.

Overloads

GetObject<TExtension>()

Gets the object that represents the element extension.

GetObject<TExtension>(XmlObjectSerializer)

Gets the object that represents the element extension.

GetObject<TExtension>(XmlSerializer)

Gets the object that represents the element extension.

GetObject<TExtension>()

Source:
SyndicationElementExtension.cs
Source:
SyndicationElementExtension.cs
Source:
SyndicationElementExtension.cs

Gets the object that represents the element extension.

public:
generic <typename TExtension>
 TExtension GetObject();
public TExtension GetObject<TExtension> ();
member this.GetObject : unit -> 'Extension
Public Function GetObject(Of TExtension) () As TExtension

Type Parameters

TExtension

The type of the extension to retrieve.

Returns

TExtension

An object of the specified type that contains the element extension.

Exceptions

The type is not a valid data contract.

The input XML cannot be deserialized into the requested type.

Applies to

GetObject<TExtension>(XmlObjectSerializer)

Source:
SyndicationElementExtension.cs
Source:
SyndicationElementExtension.cs
Source:
SyndicationElementExtension.cs

Gets the object that represents the element extension.

public:
generic <typename TExtension>
 TExtension GetObject(System::Runtime::Serialization::XmlObjectSerializer ^ serializer);
public TExtension GetObject<TExtension> (System.Runtime.Serialization.XmlObjectSerializer serializer);
member this.GetObject : System.Runtime.Serialization.XmlObjectSerializer -> 'Extension
Public Function GetObject(Of TExtension) (serializer As XmlObjectSerializer) As TExtension

Type Parameters

TExtension

The type of the extension to retrieve.

Parameters

serializer
XmlObjectSerializer

The XmlObjectSerializer to use.

Returns

TExtension

An object of the specified type that contains the element extension.

Exceptions

The type is not a valid data contract.

The input XML cannot be deserialized into the requested type.

Applies to

GetObject<TExtension>(XmlSerializer)

Source:
SyndicationElementExtension.cs
Source:
SyndicationElementExtension.cs
Source:
SyndicationElementExtension.cs

Gets the object that represents the element extension.

public:
generic <typename TExtension>
 TExtension GetObject(System::Xml::Serialization::XmlSerializer ^ serializer);
public TExtension GetObject<TExtension> (System.Xml.Serialization.XmlSerializer serializer);
member this.GetObject : System.Xml.Serialization.XmlSerializer -> 'Extension
Public Function GetObject(Of TExtension) (serializer As XmlSerializer) As TExtension

Type Parameters

TExtension

The type of the extension to retrieve.

Parameters

serializer
XmlSerializer

The XmlSerializer to use.

Returns

TExtension

An object of the specified type that contains the element extension.

Exceptions

The input XML cannot be deserialized into the requested type.

Applies to