HttpWebRequest.GetObjectData(SerializationInfo, StreamingContext) Metoda

Definicja

Ostrzeżenie

Ten interfejs API jest teraz przestarzały.

Wypełnia SerializationInfo danymi wymaganymi do serializacji obiektu docelowego.Populates a SerializationInfo with the data required to serialize the target object.

protected:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected override void GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("Serialization is obsoleted for this type.  http://go.microsoft.com/fwlink/?linkid=14202")]
protected override void GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("Serialization is obsoleted for this type.  https://go.microsoft.com/fwlink/?linkid=14202")]
[System.Obsolete("Serialization is obsoleted for this type.  https://go.microsoft.com/fwlink/?linkid=14202")]
protected override void GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("Serialization is obsoleted for this type.  https://go.microsoft.com/fwlink/?linkid=14202")]
protected override void GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Protected Overrides Sub GetObjectData (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Parametry

serializationInfo
SerializationInfo

SerializationInfo do wypełnienia danymi.The SerializationInfo to populate with data.

streamingContext
StreamingContext

StreamingContext, który określa miejsce docelowe dla tej serializacji.A StreamingContext that specifies the destination for this serialization.

Implementuje

Atrybuty

Uwagi

Wszystkie obiekty zawarte w SerializationInfo są automatycznie śledzone i serializowane przez program formatujący.Any objects included in the SerializationInfo are automatically tracked and serialized by the formatter.

Dotyczy