DBConcurrencyException.GetObjectData 方法

定义

注意

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

使用序列化 DBConcurrencyException 所需的数据填充指定的序列化信息对象。

public:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ si, System::Runtime::Serialization::StreamingContext context);
public override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
public override void GetObjectData (System.Runtime.Serialization.SerializationInfo si, System.Runtime.Serialization.StreamingContext context);
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Overrides Sub GetObjectData (info As SerializationInfo, context As StreamingContext)
Public Overrides Sub GetObjectData (si As SerializationInfo, context As StreamingContext)

参数

infosi
SerializationInfo

一个 SerializationInfo,它保存与 DBConcurrencyException 关联的序列化数据。

context
StreamingContext

一个 StreamingContext,它包含与 DBConcurrencyException 关联的序列化流的源和目标。

属性

例外

info 参数为 null 引用(在 Visual Basic 中为 Nothing)。

适用于

另请参阅