CookieException.GetObjectData(SerializationInfo, StreamingContext) CookieException.GetObjectData(SerializationInfo, StreamingContext) CookieException.GetObjectData(SerializationInfo, StreamingContext) Method

定義

以序列化 SerializationInfo 所需的資料填入 CookieException 執行個體。Populates a SerializationInfo instance with the data needed to serialize the CookieException.

public:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
public override void GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit

參數

serializationInfo
SerializationInfo SerializationInfo SerializationInfo

存放序列物件資料的物件。The object that holds the serialized object data. 要以資料填入的 SerializationInfoThe SerializationInfo to populate with data.

streamingContext
StreamingContext StreamingContext StreamingContext

關於來源或目的端的內容資訊。The contextual information about the source or destination. StreamingContext,指定這個序列化的目的地。A StreamingContext that specifies the destination for this serialization.

實作

備註

進行還原序列化 (Deserialization) 期間會呼叫這個建構函式,以便重新構成經由資料流傳送的例外狀況物件。This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. 如需詳細資訊,請參閱 < XML 和 SOAP 序列化For more information, see XML and SOAP Serialization. 包含在中SerializationInfo的任何物件都會由格式器自動追蹤和序列化。Any objects included in the SerializationInfo are automatically tracked and serialized by the formatter.

適用於