SerializationHelpers.SerializeObjectToXml Method (Object)
Serializes an object to raw XML. If serialization fails, the method throws an exception and strips XML attributes.
Namespace: Microsoft.ConfigurationManagement.Messaging.Framework
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public static string SerializeObjectToXml(
object graph
)
public:
static String^ SerializeObjectToXml(
Object^ graph
)
Public Shared Function SerializeObjectToXml (
graph As Object
) As String
Parameters
graph
Type: System.ObjectObject graph.
Return Value
Type: System.String
Serialized object.
See Also
SerializeObjectToXml Overload
SerializationHelpers Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace
Return to top