SafeSerializationEventArgs 类
定义
为 SerializeObjectState 事件提供数据。Provides data for the SerializeObjectState event.
public ref class SafeSerializationEventArgs sealed : EventArgs
public sealed class SafeSerializationEventArgs : EventArgs
type SafeSerializationEventArgs = class
inherit EventArgs
Public NotInheritable Class SafeSerializationEventArgs
Inherits EventArgs
- 继承
注解
序列化包含安全透明代码中的自定义数据的异常时,将发生此事件。The event occurs when serializing an exception that contains custom data in security-transparent code.
有关详细信息和示例,请参阅 ISafeSerializationData 类。For more information and an example, see the ISafeSerializationData class.
属性
| StreamingContext |
获取或设置一个对象,该对象描述序列化流的源和目标。Gets or sets an object that describes the source and destination of a serialized stream. |
方法
| AddSerializedState(ISafeSerializationData) |
存储异常的状态。Stores the state of the exception. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |