XamlParseException.GetObjectData(SerializationInfo, StreamingContext) 方法

定义

通过填充指定的 SerializationInfo 对象,获取序列化指定对象所需的数据。

public:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
public override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Security.SecurityCritical]
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);
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
[<System.Security.SecurityCritical>]
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Overrides Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

要向其添加序列化数据的序列化信息对象。

context
StreamingContext

此序列化的目标。

属性

注解

GetObjectData 设置一个 SerializationInfo 对象,其中包含针对序列化的所有异常对象数据。 在反序列化期间,将从通过流传输的 SerializationInfo 中重新构造异常。

适用于