อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


SyndicationElementExtensionCollection.Add Method

Definition

Adds a SyndicationElementExtension object to the collection.

Overloads

Add(Object)

Adds the specified SyndicationElementExtension object to the collection.

Add(XmlReader)

Adds a new syndication element extension to the collection.

Add(Object, DataContractSerializer)

Adds the specified object to the collection using the specified data contract serializer.

Add(Object, XmlSerializer)

Adds the specified object to the collection using the specified XML serializer.

Add(String, String, Object)

Adds the specified object to the collection with the specified outer name and outer namespace.

Add(String, String, Object, XmlObjectSerializer)

Adds the specified object to the collection with the specified outer name and outer namespace using the specified data contract serializer.

Add(Object)

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

Adds the specified SyndicationElementExtension object to the collection.

C#
public void Add(object extension);

Parameters

extension
Object

The SyndicationElementExtension object to add.

Applies to

.NET 10 (package-provided) และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

Add(XmlReader)

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

Adds a new syndication element extension to the collection.

C#
public void Add(System.Xml.XmlReader xmlReader);

Parameters

xmlReader
XmlReader

The XmlReader to read the syndication element extension from.

Applies to

.NET 10 (package-provided) และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

Add(Object, DataContractSerializer)

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

Adds the specified object to the collection using the specified data contract serializer.

C#
public void Add(object dataContractExtension, System.Runtime.Serialization.DataContractSerializer serializer);

Parameters

dataContractExtension
Object

The object to add to the collection.

serializer
DataContractSerializer

The serializer to use.

Applies to

.NET 10 (package-provided) และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

Add(Object, XmlSerializer)

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

Adds the specified object to the collection using the specified XML serializer.

C#
public void Add(object xmlSerializerExtension, System.Xml.Serialization.XmlSerializer serializer);

Parameters

xmlSerializerExtension
Object

The object to add to the collection.

serializer
XmlSerializer

The XML serializer to use.

Applies to

.NET 10 (package-provided) และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

Add(String, String, Object)

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

Adds the specified object to the collection with the specified outer name and outer namespace.

C#
public void Add(string outerName, string outerNamespace, object dataContractExtension);

Parameters

outerName
String

The outer name.

outerNamespace
String

The outer namespace.

dataContractExtension
Object

The object to add to the collection.

Applies to

.NET 10 (package-provided) และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

Add(String, String, Object, XmlObjectSerializer)

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

Adds the specified object to the collection with the specified outer name and outer namespace using the specified data contract serializer.

C#
public void Add(string outerName, string outerNamespace, object dataContractExtension, System.Runtime.Serialization.XmlObjectSerializer dataContractSerializer);

Parameters

outerName
String

The outer name.

outerNamespace
String

The outer namespace.

dataContractExtension
Object

The object to add to the collection.

dataContractSerializer
XmlObjectSerializer

The serializer to use.

Applies to

.NET 10 (package-provided) และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)