Sets the object that contains the context of the data from the source or destination.
[Visual Basic] Overridable Public Sub SetObjectData( _ ByVal info As SerializationInfo, _ ByVal context As StreamingContext _ ) [C#] public virtual void SetObjectData( SerializationInfo info, StreamingContext context ); [C++] public: virtual void SetObjectData( SerializationInfo* info, StreamingContext context ); [JScript] public function SetObjectData( info : SerializationInfo, context : StreamingContext );
The value of the object containing the StreamingContext.
Exception Type | Condition |
---|---|
ArgumentNullException | If the object is null. |
System.SerizaliationException | If it isn't a constructor. |
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).