SwitchExpressionException.GetObjectData(SerializationInfo, StreamingContext) 方法

定義

以參數名稱和其他例外狀況資訊設定 SerializationInfoSets the SerializationInfo with the parameter name and additional exception information.

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

參數

info
SerializationInfo

儲存曾經用於序列化或還原序列化物件的資料,此物件正由 CodeDomSerializer 序列化或還原序列化。Stores the data that was being used to serialize or deserialize the object that the CodeDomSerializer was serializing or deserializing.

context
StreamingContext

描述已產生例外狀況 (Exception) 之資料流的來源和目的端,和讓序列化保留該內容和額外的呼叫端定義內容的方式。Describes the source and destination of the stream that generated the exception, as well as a means for serialization to retain that context and an additional caller-defined context.

適用於