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) |