Context.Freeze Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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)

[<SecurityCriticalAttribute>]
abstract Freeze : unit -> unit
[<SecurityCriticalAttribute>]
override Freeze : unit -> unit

Exception Condition
InvalidOperationException

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
Show: