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.

C#
public TExtension GetObject<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

.NET 10 (package-provided) i druge verzije
Proizvod Verzije
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

GetObject<TExtension>(XmlObjectSerializer)

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

Gets the object that represents the element extension.

C#
public TExtension GetObject<TExtension>(System.Runtime.Serialization.XmlObjectSerializer serializer);

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

.NET 10 (package-provided) i druge verzije
Proizvod Verzije
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

GetObject<TExtension>(XmlSerializer)

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

Gets the object that represents the element extension.

C#
public TExtension GetObject<TExtension>(System.Xml.Serialization.XmlSerializer serializer);

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

.NET 10 (package-provided) i druge verzije
Proizvod Verzije
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)