XmlSyndicationContent Constructors
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.
Initializes a new instance of the XmlSyndicationContent.
Overloads
| Name | Description |
|---|---|
| XmlSyndicationContent(XmlSyndicationContent) |
Initializes a new instance of the XmlSyndicationContent with the specified XmlSyndicationContent instance. |
| XmlSyndicationContent(XmlReader) |
Initializes a new instance of the XmlSyndicationContent class. |
| XmlSyndicationContent(String, SyndicationElementExtension) |
Initializes a new instance of the XmlSyndicationContent with the specified type and SyndicationElementExtension. |
| XmlSyndicationContent(String, Object, XmlObjectSerializer) |
Initializes a new instance of the XmlSyndicationContent with the specified type, object, and XmlObjectSerializer. |
| XmlSyndicationContent(String, Object, XmlSerializer) |
Initializes a new instance of the XmlSyndicationContent with the specified type, object and XmlSerializer. |
XmlSyndicationContent(XmlSyndicationContent)
- Source:
- XmlSyndicationContent.cs
- Source:
- XmlSyndicationContent.cs
- Source:
- XmlSyndicationContent.cs
- Source:
- XmlSyndicationContent.cs
Initializes a new instance of the XmlSyndicationContent with the specified XmlSyndicationContent instance.
protected:
XmlSyndicationContent(System::ServiceModel::Syndication::XmlSyndicationContent ^ source);
protected XmlSyndicationContent(System.ServiceModel.Syndication.XmlSyndicationContent source);
new System.ServiceModel.Syndication.XmlSyndicationContent : System.ServiceModel.Syndication.XmlSyndicationContent -> System.ServiceModel.Syndication.XmlSyndicationContent
Protected Sub New (source As XmlSyndicationContent)
Parameters
- source
- XmlSyndicationContent
The XmlSyndicationContent instance.
Applies to
XmlSyndicationContent(XmlReader)
- Source:
- XmlSyndicationContent.cs
- Source:
- XmlSyndicationContent.cs
- Source:
- XmlSyndicationContent.cs
- Source:
- XmlSyndicationContent.cs
Initializes a new instance of the XmlSyndicationContent class.
public:
XmlSyndicationContent(System::Xml::XmlReader ^ reader);
public XmlSyndicationContent(System.Xml.XmlReader reader);
new System.ServiceModel.Syndication.XmlSyndicationContent : System.Xml.XmlReader -> System.ServiceModel.Syndication.XmlSyndicationContent
Public Sub New (reader As XmlReader)
Parameters
Applies to
XmlSyndicationContent(String, SyndicationElementExtension)
- Source:
- XmlSyndicationContent.cs
- Source:
- XmlSyndicationContent.cs
- Source:
- XmlSyndicationContent.cs
- Source:
- XmlSyndicationContent.cs
Initializes a new instance of the XmlSyndicationContent with the specified type and SyndicationElementExtension.
public:
XmlSyndicationContent(System::String ^ type, System::ServiceModel::Syndication::SyndicationElementExtension ^ extension);
public XmlSyndicationContent(string type, System.ServiceModel.Syndication.SyndicationElementExtension extension);
new System.ServiceModel.Syndication.XmlSyndicationContent : string * System.ServiceModel.Syndication.SyndicationElementExtension -> System.ServiceModel.Syndication.XmlSyndicationContent
Public Sub New (type As String, extension As SyndicationElementExtension)
Parameters
- type
- String
The type of the content, typically expressed as a MIME content type, for example application/xml or application/xml+customer.
- extension
- SyndicationElementExtension
The SyndicationElementExtension to place in the XmlSyndicationContent.
Applies to
XmlSyndicationContent(String, Object, XmlObjectSerializer)
- Source:
- XmlSyndicationContent.cs
- Source:
- XmlSyndicationContent.cs
- Source:
- XmlSyndicationContent.cs
- Source:
- XmlSyndicationContent.cs
Initializes a new instance of the XmlSyndicationContent with the specified type, object, and XmlObjectSerializer.
public:
XmlSyndicationContent(System::String ^ type, System::Object ^ dataContractExtension, System::Runtime::Serialization::XmlObjectSerializer ^ dataContractSerializer);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Serialization and deserialization requires dynamic code generation")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized and deserialized types may be trimmed if not referenced directly")]
public XmlSyndicationContent(string type, object dataContractExtension, System.Runtime.Serialization.XmlObjectSerializer dataContractSerializer);
public XmlSyndicationContent(string type, object dataContractExtension, System.Runtime.Serialization.XmlObjectSerializer dataContractSerializer);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Serialization and deserialization requires dynamic code generation")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized and deserialized types may be trimmed if not referenced directly")>]
new System.ServiceModel.Syndication.XmlSyndicationContent : string * obj * System.Runtime.Serialization.XmlObjectSerializer -> System.ServiceModel.Syndication.XmlSyndicationContent
new System.ServiceModel.Syndication.XmlSyndicationContent : string * obj * System.Runtime.Serialization.XmlObjectSerializer -> System.ServiceModel.Syndication.XmlSyndicationContent
Public Sub New (type As String, dataContractExtension As Object, dataContractSerializer As XmlObjectSerializer)
Parameters
- type
- String
The type of content.
- dataContractExtension
- Object
The data contract extension.
- dataContractSerializer
- XmlObjectSerializer
The XmlObjectSerializer to use.
- Attributes
Remarks
The DataContractSerializer is one subtype of XmlObjectSerializer. If null is passed, a default instance of DataContractSerializer is instantiated.
Applies to
XmlSyndicationContent(String, Object, XmlSerializer)
- Source:
- XmlSyndicationContent.cs
- Source:
- XmlSyndicationContent.cs
- Source:
- XmlSyndicationContent.cs
- Source:
- XmlSyndicationContent.cs
Initializes a new instance of the XmlSyndicationContent with the specified type, object and XmlSerializer.
public:
XmlSyndicationContent(System::String ^ type, System::Object ^ xmlSerializerExtension, System::Xml::Serialization::XmlSerializer ^ serializer);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Serialization and deserialization requires dynamic code generation")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized and deserialized types may be trimmed if not referenced directly")]
public XmlSyndicationContent(string type, object xmlSerializerExtension, System.Xml.Serialization.XmlSerializer serializer);
public XmlSyndicationContent(string type, object xmlSerializerExtension, System.Xml.Serialization.XmlSerializer serializer);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Serialization and deserialization requires dynamic code generation")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized and deserialized types may be trimmed if not referenced directly")>]
new System.ServiceModel.Syndication.XmlSyndicationContent : string * obj * System.Xml.Serialization.XmlSerializer -> System.ServiceModel.Syndication.XmlSyndicationContent
new System.ServiceModel.Syndication.XmlSyndicationContent : string * obj * System.Xml.Serialization.XmlSerializer -> System.ServiceModel.Syndication.XmlSyndicationContent
Public Sub New (type As String, xmlSerializerExtension As Object, serializer As XmlSerializer)
Parameters
- type
- String
The type of content.
- xmlSerializerExtension
- Object
The XML serializer extension.
- serializer
- XmlSerializer
The XmlSerializer to use.
- Attributes