SafeSerializationEventArgs 類別

定義

警告

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

提供 SerializeObjectState 事件的資料。

public ref class SafeSerializationEventArgs sealed : 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}")]
public sealed class SafeSerializationEventArgs : EventArgs
type SafeSerializationEventArgs = class
    inherit 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
Public NotInheritable Class SafeSerializationEventArgs
Inherits EventArgs
繼承
SafeSerializationEventArgs
屬性

備註

序列化包含安全性透明程式碼中自訂資料的例外狀況時,就會發生此事件。

如需詳細資訊和範例,請參閱 類別 ISafeSerializationData

屬性

StreamingContext
已淘汰.

取得或設定描述序列化資料流之來源和目的端的物件。

方法

AddSerializedState(ISafeSerializationData)
已淘汰.

儲存例外狀況的狀態。

Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()
已淘汰.

做為預設雜湊函式。

(繼承來源 Object)
GetType()
已淘汰.

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()
已淘汰.

傳回代表目前物件的字串。

(繼承來源 Object)

適用於