UIntPtr.ISerializable.GetObjectData(SerializationInfo, StreamingContext) UIntPtr.ISerializable.GetObjectData(SerializationInfo, StreamingContext) UIntPtr.ISerializable.GetObjectData(SerializationInfo, StreamingContext) Method

定義

使用序列化目前 SerializationInfo 物件所需的資料,填入 UIntPtr 物件。Populates a SerializationInfo object with the data needed to serialize the current UIntPtr object.

 virtual void System.Runtime.Serialization.ISerializable.GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context) = System::Runtime::Serialization::ISerializable::GetObjectData;
[System.Security.SecurityCritical]
void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
Sub GetObjectData (info As SerializationInfo, context As StreamingContext) Implements ISerializable.GetObjectData

參數

info
SerializationInfo SerializationInfo SerializationInfo

要填入資料的 SerializationInfo 物件。The SerializationInfo object to populate with data.

context
StreamingContext StreamingContext StreamingContext

這個序列化的目的端。The destination for this serialization. (不使用這個參數;請指定 null)。(This parameter is not used; specify null.)

實作

例外狀況

備註

這個方法會在info參數中填入目前UIntPtr物件的值。This method populates the info parameter with the value of the current UIntPtr object.

安全性

SecurityCriticalAttribute
需要完全信任立即呼叫者。requires full trust for the immediate caller. 部分信任或透明的程式碼無法使用這個成員。This member cannot be used by partially trusted or transparent code.

適用於