.NET Framework 4.6 and 4.5
adds a root context to provide a definition of the root object. This class cannot be inherited CodeDomSerializer
.Object System.ComponentModel.Design.Serialization .RootContext
type RootContext = class end
RootContext type exposes the following members.
Name Description RootContext Initializes a new instance of the class. RootContext Top
Name Description Expression Gets the expression representing the root object in the object graph. Value Gets the root object of the object graph. Top
Name Description Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.) GetHashCode Serves as the default hash function. (Inherited from Object.) GetType Gets the (Inherited from of the current instance. Type Object.) ToString Returns a string that represents the current object. (Inherited from Object.) Top
can be placed on the context stack to represent the object that is the root of the serialization hierarchy. In addition to this instance, the RootContext also contains an expression that can be used to reference the RootContext . RootContext .NET Framework
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.