SafeSerializationEventArgs 类

定义

注意

Formatter-based serialization is obsolete and should not be used.

提供事件的数据 SerializeObjectState

public ref class SafeSerializationEventArgs sealed : EventArgs
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public sealed class SafeSerializationEventArgs : EventArgs
public sealed class SafeSerializationEventArgs : EventArgs
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type SafeSerializationEventArgs = class
    inherit EventArgs
type SafeSerializationEventArgs = class
    inherit EventArgs
Public NotInheritable Class SafeSerializationEventArgs
Inherits EventArgs
继承
SafeSerializationEventArgs
属性

注解

序列化包含安全透明代码中的自定义数据的异常时,将发生该事件。

有关详细信息和示例,请参阅该 ISafeSerializationData 类。

属性

名称 说明
StreamingContext
已过时.

获取或设置描述序列化流的源和目标的对象。

方法

名称 说明
AddSerializedState(ISafeSerializationData)
已过时.

存储异常的状态。

Equals(Object)
已过时.

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()
已过时.

用作默认哈希函数。

(继承自 Object)
GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()
已过时.

创建当前 Object的浅表副本。

(继承自 Object)
ToString()
已过时.

返回一个表示当前对象的字符串。

(继承自 Object)

适用于