編輯

共用方式為


SyndicationElementExtensionCollection.ReadElementExtensions Method

Definition

Reads the element extensions.

Overloads

ReadElementExtensions<TExtension>(String, String)

Reads the element extensions with the specified name and namespace.

ReadElementExtensions<TExtension>(String, String, XmlObjectSerializer)

Reads the element extensions with the specified name and namespace.

ReadElementExtensions<TExtension>(String, String, XmlSerializer)

Reads the element extensions with the specified name and namespace.

ReadElementExtensions<TExtension>(String, String)

Source:
SyndicationElementExtensionCollection.cs
Source:
SyndicationElementExtensionCollection.cs
Source:
SyndicationElementExtensionCollection.cs
Source:
SyndicationElementExtensionCollection.cs

Reads the element extensions with the specified name and namespace.

public:
generic <typename TExtension>
 System::Collections::ObjectModel::Collection<TExtension> ^ ReadElementExtensions(System::String ^ extensionName, System::String ^ extensionNamespace);
public System.Collections.ObjectModel.Collection<TExtension> ReadElementExtensions<TExtension> (string extensionName, string extensionNamespace);
member this.ReadElementExtensions : string * string -> System.Collections.ObjectModel.Collection<'Extension>
Public Function ReadElementExtensions(Of TExtension) (extensionName As String, extensionNamespace As String) As Collection(Of TExtension)

Type Parameters

TExtension

The type of the extension to read.

Parameters

extensionName
String

The name of the element extension.

extensionNamespace
String

The namespace of the element extension.

Returns

Collection<TExtension>

A collection of element extension objects.

Exceptions

The type is not a valid data contract.

The input XML cannot be deserialized into the requested type.

Applies to

ReadElementExtensions<TExtension>(String, String, XmlObjectSerializer)

Source:
SyndicationElementExtensionCollection.cs
Source:
SyndicationElementExtensionCollection.cs
Source:
SyndicationElementExtensionCollection.cs
Source:
SyndicationElementExtensionCollection.cs

Reads the element extensions with the specified name and namespace.

public:
generic <typename TExtension>
 System::Collections::ObjectModel::Collection<TExtension> ^ ReadElementExtensions(System::String ^ extensionName, System::String ^ extensionNamespace, System::Runtime::Serialization::XmlObjectSerializer ^ serializer);
public System.Collections.ObjectModel.Collection<TExtension> ReadElementExtensions<TExtension> (string extensionName, string extensionNamespace, System.Runtime.Serialization.XmlObjectSerializer serializer);
member this.ReadElementExtensions : string * string * System.Runtime.Serialization.XmlObjectSerializer -> System.Collections.ObjectModel.Collection<'Extension>
Public Function ReadElementExtensions(Of TExtension) (extensionName As String, extensionNamespace As String, serializer As XmlObjectSerializer) As Collection(Of TExtension)

Type Parameters

TExtension

The type of the extension to read.

Parameters

extensionName
String

The name of the element extension.

extensionNamespace
String

The namespace of the element extension.

serializer
XmlObjectSerializer

The XmlObjectSerializer to use.

Returns

Collection<TExtension>

A collection of element extension objects.

Exceptions

The type is not a valid data contract.

The input XML cannot be deserialized into the requested type.

Applies to

ReadElementExtensions<TExtension>(String, String, XmlSerializer)

Source:
SyndicationElementExtensionCollection.cs
Source:
SyndicationElementExtensionCollection.cs
Source:
SyndicationElementExtensionCollection.cs
Source:
SyndicationElementExtensionCollection.cs

Reads the element extensions with the specified name and namespace.

public:
generic <typename TExtension>
 System::Collections::ObjectModel::Collection<TExtension> ^ ReadElementExtensions(System::String ^ extensionName, System::String ^ extensionNamespace, System::Xml::Serialization::XmlSerializer ^ serializer);
public System.Collections.ObjectModel.Collection<TExtension> ReadElementExtensions<TExtension> (string extensionName, string extensionNamespace, System.Xml.Serialization.XmlSerializer serializer);
member this.ReadElementExtensions : string * string * System.Xml.Serialization.XmlSerializer -> System.Collections.ObjectModel.Collection<'Extension>
Public Function ReadElementExtensions(Of TExtension) (extensionName As String, extensionNamespace As String, serializer As XmlSerializer) As Collection(Of TExtension)

Type Parameters

TExtension

The type of the extension to read.

Parameters

extensionName
String

The name of the element extension.

extensionNamespace
String

The namespace of the element extension.

serializer
XmlSerializer

The XmlSerializer to use.

Returns

Collection<TExtension>

A collection of element extension objects.

Exceptions

The input XML cannot be deserialized into the requested type.

Applies to