SerializationHelpers.SerializeObjectToXml Method (Object, SerializationArguments, Encoding)
Serializes the object to a byte array that represents XML with the specified encoding.
Namespace: Microsoft.ConfigurationManagement.Messaging.Framework
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public static byte[] SerializeObjectToXml(
object graph,
SerializationArguments arguments,
Encoding encoding
)
public:
static array<unsigned char>^ SerializeObjectToXml(
Object^ graph,
SerializationArguments arguments,
Encoding^ encoding
)
Public Shared Function SerializeObjectToXml (
graph As Object,
arguments As SerializationArguments,
encoding As Encoding
) As Byte()
Parameters
graph
Type: System.ObjectObject graph.
arguments
Type: Microsoft.ConfigurationManagement.Messaging.Framework.SerializationArgumentsSerialization arguments.
encoding
Type: System.Text.EncodingText encoding.
Return Value
Type: System.Byte[]
Serialized object.
See Also
SerializeObjectToXml Overload
SerializationHelpers Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace
Return to top