RemotingServices.GetObjectData 方法

定义

按引用对象将指定封送序列化为所提供的 SerializationInfo

public:
 static void GetObjectData(System::Object ^ obj, System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public static void GetObjectData (object obj, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Security.SecurityCritical]
public static void GetObjectData (object obj, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
static member GetObjectData : obj * System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
[<System.Security.SecurityCritical>]
static member GetObjectData : obj * System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Shared Sub GetObjectData (obj As Object, info As SerializationInfo, context As StreamingContext)

参数

obj
Object

要序列化的对象。

info
SerializationInfo

将对象序列化为的 SerializationInfo

context
StreamingContext

序列化的源和目标。

属性

例外

objinfo 参数为 null

直接调用方没有基础结构权限。

适用于

另请参阅