SyndicationElementExtensionCollection.ReadElementExtensions 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.
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)
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
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)
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
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)
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
A collection of element extension objects.
Exceptions
The input XML cannot be deserialized into the requested type.
Applies to
.NET