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 | |
---|---|---|
DeserializeObjectFromBinary(Byte[], Type) | Deserializes an object by using BinaryFormatter. |
|
DeserializeObjectFromBinary<T>(Byte[]) | Deserializes an object by using BinaryFormatter. |
|
DeserializeRawToStructure(Byte[], Type) | Deserializes a raw byte stream to an object. |
|
DeserializeRawToStructure<T>(Byte[]) | Deserializes a raw byte stream to an object. |
|
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. |
|
DeserializeXmlToObject(String, Type, DeserializationArguments) | Deserializes raw XML to an object. |
|
DeserializeXmlToObject<T>(String) | Deserializes raw XML to an object. This method will throw an exception if deserialization fails. |
|
DeserializeXmlToObject<T>(String, DeserializationArguments) | Deserializes raw XML to an object. |
|
GetSpecialSerializationParameters(Object) | Gets any MessageSerializationParameters set for the message MessageSerializationAttribute. |
|
SerializeObjectToBinary(Object) | Serializes an object to its binary byte stream representation. |
|
SerializeObjectToXml(Object) | Serializes an object to raw XML. If serialization fails, the method throws an exception and strips XML attributes. |
|
SerializeObjectToXml(Object, SerializationArguments) | Serializes the object to Unicode XML. |
|
SerializeObjectToXml(Object, SerializationArguments, Encoding) | Serializes the object to a byte array that represents XML with the specified encoding. |
|
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. |
|
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. |
|
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