Sets the object that contains the context of the data from the source or destination.
[Visual Basic] Overrides Public Sub SetObjectData( _ ByVal info As SerializationInfo, _ ByVal context As StreamingContext _ ) [C#] public override void SetObjectData( SerializationInfo info, StreamingContext context ); [C++] public: override void SetObjectData( SerializationInfo* info, StreamingContext context ); [JScript] public override function SetObjectData( info : SerializationInfo, context : StreamingContext );
The value of the object containing the StreamingContext.
Exception Type | Condition |
---|---|
ArgumentNullException | If the object is null. |
This method sets the StreamingContext to return the value of the object that holds the source and/or destination of a given serialized stream (see SerializationInfo).
ArgumentException Class | ArgumentException Members | System Namespace