Szerkesztés

Megosztás a következőn keresztül:


SafeSerializationEventArgs Class

Definition

Caution

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

Provides data for the SerializeObjectState event.

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
Inheritance
SafeSerializationEventArgs
Attributes

Remarks

The event occurs when serializing an exception that contains custom data in security-transparent code.

For more information and an example, see the ISafeSerializationData class.

Properties

StreamingContext

Gets or sets an object that describes the source and destination of a serialized stream.

Methods

AddSerializedState(ISafeSerializationData)

Stores the state of the exception.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to