SyndicationElementExtension.GetObject 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.
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>()
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
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)
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
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)
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
An object of the specified type that contains the element extension.
Exceptions
The input XML cannot be deserialized into the requested type.