SafeSerializationEventArgs Klasa

Definicja

Przestroga

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

Udostępnia dane dla zdarzenia 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
Dziedziczenie
SafeSerializationEventArgs
Atrybuty

Uwagi

Zdarzenie występuje podczas serializacji wyjątku zawierającego dane niestandardowe w kodzie przezroczystym dla zabezpieczeń.

Aby uzyskać więcej informacji i przykład, zobacz klasę ISafeSerializationData .

Właściwości

StreamingContext
Przestarzałe.

Pobiera lub ustawia obiekt opisujący źródło i miejsce docelowe serializowanego strumienia.

Metody

AddSerializedState(ISafeSerializationData)
Przestarzałe.

Przechowuje stan wyjątku.

Equals(Object)
Przestarzałe.

Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.

(Odziedziczone po Object)
GetHashCode()
Przestarzałe.

Służy jako domyślna funkcja skrótu.

(Odziedziczone po Object)
GetType()
Przestarzałe.

Type Pobiera wartość bieżącego wystąpienia.

(Odziedziczone po Object)
MemberwiseClone()
Przestarzałe.

Tworzy płytkią kopię bieżącego Objectelementu .

(Odziedziczone po Object)
ToString()
Przestarzałe.

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)

Dotyczy