Context.DefaultContext 属性

定义

获取当前应用程序域的默认上下文。Gets the default context for the current application domain.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 static property System::Runtime::Remoting::Contexts::Context ^ DefaultContext { System::Runtime::Remoting::Contexts::Context ^ get(); };
[get: System.Security.SecurityCritical]
public static System.Runtime.Remoting.Contexts.Context DefaultContext { get; }
member this.DefaultContext : System.Runtime.Remoting.Contexts.Context
Public Shared ReadOnly Property DefaultContext As Context

属性值

AppDomain 命名空间的默认上下文。The default context for the AppDomain namespace.

属性

注解

未显式设置上下文的应用程序域中的每个线程都被视为在默认上下文中运行。Every thread in an application domain for which a context is not explicitly set is considered to be running in the default context.

适用于