SyndicationElementExtension.GetObject 方法

定义

获取表示元素扩展的对象。Gets the object that represents the element extension.

重载

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

类型参数

TExtension

要检索的扩展的类型。The type of the extension to retrieve.

返回

TExtension

一个指定类型的对象,其中包含元素扩展。An object of the specified type that contains the element extension.

例外

类型不是有效的数据协定。The type is not a valid data contract.

无法将输入 XML 反序列化为请求的类型。The input XML cannot be deserialized into the requested type.

适用于

产品 已引入

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

类型参数

TExtension

要检索的扩展的类型。The type of the extension to retrieve.

参数

serializer
XmlObjectSerializer

要使用的 XmlObjectSerializerThe XmlObjectSerializer to use.

返回

TExtension

一个指定类型的对象,其中包含元素扩展。An object of the specified type that contains the element extension.

例外

类型不是有效的数据协定。The type is not a valid data contract.

无法将输入 XML 反序列化为请求的类型。The input XML cannot be deserialized into the requested type.

适用于

产品 已引入

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

类型参数

TExtension

要检索的扩展的类型。The type of the extension to retrieve.

参数

serializer
XmlSerializer

要使用的 XmlSerializerThe XmlSerializer to use.

返回

TExtension

一个指定类型的对象,其中包含元素扩展。An object of the specified type that contains the element extension.

例外

无法将输入 XML 反序列化为请求的类型。The input XML cannot be deserialized into the requested type.

适用于

产品 已引入