共用方式為


RemotingServices.GetObjectData 方法

定義

序列化指定的傳址 (By Reference) 封送處理物件至提供的 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

立即呼叫端沒有基礎結構使用權限。

適用於

另請參閱