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.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應