StreamingContext

StreamingContext serializable

System.Runtime.Serialization (mscorlib.dll) struct

This class describes the source or destination of a serialized stream. The context can determine how classes are serialized and require special parsing during deserialization. The State property holds a value from StreamingContextStates that indicates the destination of object data during serialization and the source of data during deserialization. This could indicate that you are serializing data to a file, for example, or deserializing data that came from another process.

 public struct  StreamingContext  {  // Public Constructors  public  StreamingContext  (StreamingContextStates   state   );    public  StreamingContext  (StreamingContextStates   state   , object   additional   );  // Public Instance Properties  public object  Context  {get; }    public StreamingContextStates  State  {get; }  // Public Instance Methods  public override bool  Equals  (object   obj   );  // overrides ValueType  public override int  GetHashCode  ( );  // overrides ValueType  } 

Hierarchy

System.Object System.ValueType StreamingContext

Returned By

Formatter.Context , System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Context , System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Context , IFormatter.Context

Passed To

Multiple types



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net