SerializationHelpers Class

 

Class that handles serializing and deserializing objects.

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

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

[SerializableAttribute]
public ref class SerializationHelpers abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticDeserializeObjectFromBinary(array<Byte>^, Type^)

Deserializes an object by using BinaryFormatter.

System_CAPS_pubmethodSystem_CAPS_staticDeserializeObjectFromBinary<T>(array<Byte>^)

Deserializes an object by using BinaryFormatter.

System_CAPS_pubmethodSystem_CAPS_staticDeserializeRawToStructure(array<Byte>^, Type^)

Deserializes a raw byte stream to an object.

System_CAPS_pubmethodSystem_CAPS_staticDeserializeRawToStructure<T>(array<Byte>^)

Deserializes a raw byte stream to an object.

System_CAPS_pubmethodSystem_CAPS_staticDeserializeXmlToObject(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_staticDeserializeXmlToObject(String^, Type^, DeserializationArguments)

Deserializes raw XML to an object.

System_CAPS_pubmethodSystem_CAPS_staticDeserializeXmlToObject<T>(String^)

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

System_CAPS_pubmethodSystem_CAPS_staticDeserializeXmlToObject<T>(String^, DeserializationArguments)

Deserializes raw XML to an object.

System_CAPS_pubmethodSystem_CAPS_staticGetSpecialSerializationParameters(Object^)
System_CAPS_pubmethodSystem_CAPS_staticSerializeObjectToBinary(Object^)

Serializes an object to its binary byte stream representation.

System_CAPS_pubmethodSystem_CAPS_staticSerializeObjectToXml(Object^)

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

System_CAPS_pubmethodSystem_CAPS_staticSerializeObjectToXml(Object^, SerializationArguments)

Serializes the object to Unicode XML.

System_CAPS_pubmethodSystem_CAPS_staticSerializeObjectToXml(Object^, SerializationArguments, Encoding^)

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

System_CAPS_pubmethodSystem_CAPS_staticSerializeObjectToXmlNode(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_staticSerializeStringToXmlNode(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_staticSerializeStructureToRaw(Object^)

Serializes an object to a byte array.

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

Return to top
Show: