MessagePackSerializerExtensionsPack Method (IMessagePackSerializer, Stream, Object, PackerCompatibilityOptions) |
Serializes specified object to the
Stream.
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public static void Pack(
this IMessagePackSerializer source,
Stream stream,
Object objectTree,
PackerCompatibilityOptions packerCompatibilityOptions
)
<ExtensionAttribute>
Public Shared Sub Pack (
source As IMessagePackSerializer,
stream As Stream,
objectTree As Object,
packerCompatibilityOptions As PackerCompatibilityOptions
)
public:
[ExtensionAttribute]
static void Pack(
IMessagePackSerializer^ source,
Stream^ stream,
Object^ objectTree,
PackerCompatibilityOptions packerCompatibilityOptions
)
[<ExtensionAttribute>]
static member Pack :
source : IMessagePackSerializer *
stream : Stream *
objectTree : Object *
packerCompatibilityOptions : PackerCompatibilityOptions -> unit
Parameters
- source
- Type: MsgPack.SerializationIMessagePackSerializer
IMessagePackSerializer object. - stream
- Type: System.IOStream
Destination Stream. - objectTree
- Type: SystemObject
Object to be serialized. - packerCompatibilityOptions
- Type: MsgPackPackerCompatibilityOptions
A PackerCompatibilityOptions which specifies compatibility options.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IMessagePackSerializer. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions See Also