Context.Freeze Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Freezes the context, making it impossible to add or remove context properties from the current context.

Namespace:   System.Runtime.Remoting.Contexts
Assembly:  mscorlib (in mscorlib.dll)

abstract Freeze : unit -> unit
override Freeze : unit -> unit

Exception Condition

The context is already frozen.

Context properties cannot be added after the context has been frozen.

.NET Framework
Available since 1.1
Return to top