RootContext 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
CodeDomSerializer 可添加根上下文以提供根对象的定义。 此类不能被继承。
public ref class RootContext sealedpublic sealed class RootContexttype RootContext = classPublic NotInheritable Class RootContext- 继承
- 
				RootContext
注解
RootContext可以放置在上下文堆栈上以表示序列化层次结构根的对象。 除了此实例之外 RootContext , 还包含可用于引用 的 RootContext表达式。
构造函数
| RootContext(CodeExpression, Object) | 初始化 RootContext 类的新实例。 | 
属性
| Expression | 获取表示对象图中的根对象的表达式。 | 
| Value | 获取对象图的根对象。 | 
方法
| Equals(Object) | 确定指定对象是否等于当前对象。(继承自 Object) | 
| GetHashCode() | 作为默认哈希函数。(继承自 Object) | 
| GetType() | 获取当前实例的 Type。(继承自 Object) | 
| MemberwiseClone() | 创建当前 Object 的浅表副本。(继承自 Object) | 
| ToString() | 返回表示当前对象的字符串。(继承自 Object) |