ContextStack.Append(Object) 方法
定义
将对象追加到堆栈的结尾,而不是将其推到堆栈的顶部。Appends an object to the end of the stack, rather than pushing it onto the top of the stack.
public:
void Append(System::Object ^ context);
public void Append (object context);
member this.Append : obj -> unit
Public Sub Append (context As Object)
参数
- context
- Object
要追加到堆栈中的上下文对象。A context object to append to the stack.
例外
context 为 null。context is null.
注解
此方法允许序列化程序通过添加无需按顺序删除的上下文数据对象来与其他序列化程序进行通信。This method allows a serializer to communicate with other serializers by adding contextual data objects that do not have to be removed in order. 没有办法删除追加到堆栈末尾的对象,而不会删除所有其他对象。There is no way to remove an object that was appended to the end of the stack without removing all other objects.