WebOperationContext.CreateXmlResponse 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.
Creates a XML formatted message.
Overloads
CreateXmlResponse(XDocument) |
Creates an XML formatted message. |
CreateXmlResponse(XElement) |
Creates an XML formatted message. |
CreateXmlResponse<T>(T) |
Creates an XML formatted message. |
CreateXmlResponse<T>(T, XmlObjectSerializer) |
Creates an XML formatted message. |
CreateXmlResponse<T>(T, XmlSerializer) |
Creates an XML formatted message. |
CreateXmlResponse(XDocument)
Creates an XML formatted message.
public:
System::ServiceModel::Channels::Message ^ CreateXmlResponse(System::Xml::Linq::XDocument ^ document);
public System.ServiceModel.Channels.Message CreateXmlResponse (System.Xml.Linq.XDocument document);
member this.CreateXmlResponse : System.Xml.Linq.XDocument -> System.ServiceModel.Channels.Message
Public Function CreateXmlResponse (document As XDocument) As Message
Parameters
- document
- XDocument
The data to write to the message.
Returns
An XML formatted message.
Applies to
CreateXmlResponse(XElement)
Creates an XML formatted message.
public:
System::ServiceModel::Channels::Message ^ CreateXmlResponse(System::Xml::Linq::XElement ^ element);
public System.ServiceModel.Channels.Message CreateXmlResponse (System.Xml.Linq.XElement element);
member this.CreateXmlResponse : System.Xml.Linq.XElement -> System.ServiceModel.Channels.Message
Public Function CreateXmlResponse (element As XElement) As Message
Parameters
- element
- XElement
The data to write to the message.
Returns
An XML formatted message.
Applies to
CreateXmlResponse<T>(T)
Creates an XML formatted message.
public:
generic <typename T>
System::ServiceModel::Channels::Message ^ CreateXmlResponse(T instance);
public System.ServiceModel.Channels.Message CreateXmlResponse<T> (T instance);
member this.CreateXmlResponse : 'T -> System.ServiceModel.Channels.Message
Public Function CreateXmlResponse(Of T) (instance As T) As Message
Type Parameters
- T
The type of object to write to the message.
Parameters
- instance
- T
The object to write to write to the message.
Returns
An XML formatted message.
Applies to
CreateXmlResponse<T>(T, XmlObjectSerializer)
Creates an XML formatted message.
public:
generic <typename T>
System::ServiceModel::Channels::Message ^ CreateXmlResponse(T instance, System::Runtime::Serialization::XmlObjectSerializer ^ serializer);
public System.ServiceModel.Channels.Message CreateXmlResponse<T> (T instance, System.Runtime.Serialization.XmlObjectSerializer serializer);
member this.CreateXmlResponse : 'T * System.Runtime.Serialization.XmlObjectSerializer -> System.ServiceModel.Channels.Message
Public Function CreateXmlResponse(Of T) (instance As T, serializer As XmlObjectSerializer) As Message
Type Parameters
- T
The type of object to write to the message.
Parameters
- instance
- T
The object to write to the message.
- serializer
- XmlObjectSerializer
The serializer to use.
Returns
An XML formatted message.
Applies to
CreateXmlResponse<T>(T, XmlSerializer)
Creates an XML formatted message.
public:
generic <typename T>
System::ServiceModel::Channels::Message ^ CreateXmlResponse(T instance, System::Xml::Serialization::XmlSerializer ^ serializer);
public System.ServiceModel.Channels.Message CreateXmlResponse<T> (T instance, System.Xml.Serialization.XmlSerializer serializer);
member this.CreateXmlResponse : 'T * System.Xml.Serialization.XmlSerializer -> System.ServiceModel.Channels.Message
Public Function CreateXmlResponse(Of T) (instance As T, serializer As XmlSerializer) As Message
Type Parameters
- T
The type of object to write to the message.
Parameters
- instance
- T
The object to write to the message.
- serializer
- XmlSerializer
The serializer to use.
Returns
An XML formatted message.