ContextAttribute.Freeze 方法

此方法支持 .NET 基础结构,但不适合在代码中直接使用。

当上下文冻结时调用。

**命名空间:**System.Runtime.Remoting.Contexts
**程序集:**mscorlib(在 mscorlib.dll 中)

语法

声明
Public Overridable Sub Freeze ( _
    newContext As Context _
)
用法
Dim instance As ContextAttribute
Dim newContext As Context

instance.Freeze(newContext)
public virtual void Freeze (
    Context newContext
)
public:
virtual void Freeze (
    Context^ newContext
)
public void Freeze (
    Context newContext
)
public function Freeze (
    newContext : Context
)

参数

  • newContext
    要冻结的上下文。

备注

无法在上下文被冻结后添加上下文属性。

平台

Windows 98、Windows 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

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

ContextAttribute 类
ContextAttribute 成员
System.Runtime.Remoting.Contexts 命名空间