Formatter.Context Property

When overridden in a derived class, gets or sets the StreamingContext used for the current serialization.

This property is not CLS-compliant.  

Namespace: System.Runtime.Serialization
Assembly: mscorlib (in mscorlib.dll)

public abstract StreamingContext Context { get; set; }
/** @property */
public abstract StreamingContext get_Context ()

/** @property */
public abstract void set_Context (StreamingContext value)

public abstract function get Context () : StreamingContext

public abstract function set Context (value : StreamingContext)

Not applicable.

Property Value

The StreamingContext used for the current serialization.

The StreamingContext is an indication of either the source of the bits being deserialized or the destination of the bits being serialized. It has no impact on default serialization, but is passed as an argument to ISerializable and ISerializationSurrogate.

Notes to Inheritors: You must implement this property in a derived class.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions