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