StatementContext Class

 

Provides a location into which statements can be serialized. This class cannot be inherited.

Namespace:   System.ComponentModel.Design.Serialization
Assembly:  System.Design (in System.Design.dll)

System::Object
  System.ComponentModel.Design.Serialization::StatementContext

public ref class StatementContext sealed 

NameDescription
System_CAPS_pubmethodStatementContext()

Initializes a new instance of the StatementContext class.

NameDescription
System_CAPS_pubpropertyStatementCollection

Gets a collection of statements offered by the statement context.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Usually, statements are serialized into the statement collection that is on the context stack. You can modify this behavior by creating a statement context and calling the Populate method with a collection of objects whose statements you want stored in the statement table. As each object is serialized in the SerializeToExpression method, it has its contents placed in the statement table and saved in the context. If you push this object on the stack, it is your responsibility to integrate the statements added to it into your own collection of statements.

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: