HashSet<T>.GetObjectData(SerializationInfo, StreamingContext) HashSet<T>.GetObjectData(SerializationInfo, StreamingContext) HashSet<T>.GetObjectData(SerializationInfo, StreamingContext) HashSet<T>.GetObjectData(SerializationInfo, StreamingContext) Method

Définition

Implémente l'interface ISerializable et retourne les données requises pour sérialiser un objet HashSet<T>.Implements the ISerializable interface and returns the data needed to serialize a HashSet<T> object.

public:
 virtual void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Security.SecurityCritical]
public virtual void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
abstract member GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Overridable Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

Paramètres

info
SerializationInfo SerializationInfo SerializationInfo SerializationInfo

Objet SerializationInfo qui contient les informations nécessaires pour sérialiser l'objet HashSet<T>.A SerializationInfo object that contains the information required to serialize the HashSet<T> object.

context
StreamingContext StreamingContext StreamingContext StreamingContext

Structure de StreamingContext qui contient la source et la destination du flux sérialisé associé à l'objet HashSet<T>.A StreamingContext structure that contains the source and destination of the serialized stream associated with the HashSet<T> object.

Implémente

Exceptions

Remarques

L’appel de cette méthode est unenopération O () n , Countoù est.Calling this method is an O(n) operation, where n is Count.

Sécurité

SecurityPermission
pour fournir des services de sérialisation.for providing serialization services. Action de sécurité LinkDemand:.Security action: LinkDemand. Énumération associée:SerializationFormatterAssociated enumeration: SerializationFormatter

S’applique à