类库说明文档
![]() | JHSerializationByteSerialize Method |
将对象或具有指定顶级(根)的对象图形序列化为字节数组,异常将直接抛出
Namespace: DCSoft.Utility.IO
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)

C#
public static byte[] ByteSerialize( Object graph )
Parameters
- graph
- Type: SystemObject
位于要序列化图形的根位置的对象
Return Value
Type: Byte返回序列化后的字节数组

Exception | Condition |
---|---|
ArgumentNullException | serializationStream 为 null |
SerializationException | 序列化期间发生错误,如 graph 参数中的某个对象未标记为可序列化 |
SecurityException | 调用方没有所要求的权限 |
