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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기