Share via


SerializationHelpers Class

 

Class that handles serializing and deserializing objects.

Namespace:   Microsoft.ConfigurationManagement.Messaging.Framework
Assembly:  Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)

Inheritance Hierarchy

System.Object
  Microsoft.ConfigurationManagement.Messaging.Framework.SerializationHelpers

Syntax

[SerializableAttribute]
public static class SerializationHelpers
[SerializableAttribute]
public ref class SerializationHelpers abstract sealed 
<SerializableAttribute>
Public NotInheritable Class SerializationHelpers

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static DeserializeObjectFromBinary(Byte[], Type)

Deserializes an object by using BinaryFormatter.

System_CAPS_pubmethodSystem_CAPS_static DeserializeObjectFromBinary<T>(Byte[])

Deserializes an object by using BinaryFormatter.

System_CAPS_pubmethodSystem_CAPS_static DeserializeRawToStructure(Byte[], Type)

Deserializes a raw byte stream to an object.

System_CAPS_pubmethodSystem_CAPS_static DeserializeRawToStructure<T>(Byte[])

Deserializes a raw byte stream to an object.

System_CAPS_pubmethodSystem_CAPS_static DeserializeXmlToObject(String, Type)

Deserializes raw XML to an object. This method will throw an exception if deserialization fails.

This method does not add an XML header.

System_CAPS_pubmethodSystem_CAPS_static DeserializeXmlToObject(String, Type, DeserializationArguments)

Deserializes raw XML to an object.

System_CAPS_pubmethodSystem_CAPS_static DeserializeXmlToObject<T>(String)

Deserializes raw XML to an object. This method will throw an exception if deserialization fails.

System_CAPS_pubmethodSystem_CAPS_static DeserializeXmlToObject<T>(String, DeserializationArguments)

Deserializes raw XML to an object.

System_CAPS_pubmethodSystem_CAPS_static GetSpecialSerializationParameters(Object)

Gets any MessageSerializationParameters set for the message MessageSerializationAttribute.

System_CAPS_pubmethodSystem_CAPS_static SerializeObjectToBinary(Object)

Serializes an object to its binary byte stream representation.

System_CAPS_pubmethodSystem_CAPS_static SerializeObjectToXml(Object)

Serializes an object to raw XML. If serialization fails, the method throws an exception and strips XML attributes.

System_CAPS_pubmethodSystem_CAPS_static SerializeObjectToXml(Object, SerializationArguments)

Serializes the object to Unicode XML.

System_CAPS_pubmethodSystem_CAPS_static SerializeObjectToXml(Object, SerializationArguments, Encoding)

Serializes the object to a byte array that represents XML with the specified encoding.

System_CAPS_pubmethodSystem_CAPS_static SerializeObjectToXmlNode(Object)

Serializes an object to an XML node. This method can be used to do in-place XML updates that serializers can't handle. This should be used with [XmlAnyElement] blocks.

System_CAPS_pubmethodSystem_CAPS_static SerializeStringToXmlNode(String)

Serializes a string to an XML node. This method can be used to do in-place XML updates that serializers can't handle. This should be used with [XmlAnyElement] blocks.

System_CAPS_pubmethodSystem_CAPS_static SerializeStructureToRaw(Object)

Serializes an object to a byte array.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.ConfigurationManagement.Messaging.Framework Namespace

Return to top