RegistrationException.GetObjectData(SerializationInfo, StreamingContext) 方法

定義

使用 RegistrationErrorInfo 中的錯誤資訊設定 SerializationInfo 物件。Sets the SerializationInfo object with the error information in RegistrationErrorInfo.

public:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext ctx);
public override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext ctx);
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Overrides Sub GetObjectData (info As SerializationInfo, ctx As StreamingContext)

參數

info
SerializationInfo

SerializationInfo 物件,該物件包含序列化物件資料。A SerializationInfo object that contains serialized object data.

ctx
StreamingContext

關於來源或目的端的內容資訊。The contextual information about the source or destination.

例外狀況

info 參數為 nullinfo parameter is null.

適用於