JHSerialization.ByteSerialize Method

DCSoft.DBUtilityGeneric

JHSerializationByteSerialize Method
将对象或具有指定顶级(根)的对象图形序列化为字节数组,异常将直接抛出

Namespace: DCSoft.Utility.IO
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public static byte[] ByteSerialize(
	Object graph
)

Parameters

graph
Type: SystemObject
位于要序列化图形的根位置的对象

Return Value

Type: Byte
返回序列化后的字节数组
Exceptions
ExceptionCondition
ArgumentNullExceptionserializationStream 为 null
SerializationException序列化期间发生错误,如 graph 参数中的某个对象未标记为可序列化
SecurityException调用方没有所要求的权限
See Also