TreeView.LoadPostData(String, NameValueCollection) 方法
定义
protected:
virtual bool LoadPostData(System::String ^ postDataKey, System::Collections::Specialized::NameValueCollection ^ postCollection);
protected virtual bool LoadPostData (string postDataKey, System.Collections.Specialized.NameValueCollection postCollection);
abstract member LoadPostData : string * System.Collections.Specialized.NameValueCollection -> bool
override this.LoadPostData : string * System.Collections.Specialized.NameValueCollection -> bool
Protected Overridable Function LoadPostData (postDataKey As String, postCollection As NameValueCollection) As Boolean
参数
- postDataKey
- String
控件的主要标识符。The key identifier for the control.
- postCollection
- NameValueCollection
所有传入名称值的集合。The collection of all incoming name values.
返回
如果 TreeView 控件的状态由于回发事件而发生更改,则为 true;否则为 false。true, if the TreeView control's state changes as a result of the postback event; otherwise, false.
注解
ASP.NET 页框架跟踪从方法调用返回的所有服务器控件 true LoadPostData ,然后 RaisePostDataChangedEvent 在这些控件上调用方法。The ASP.NET page framework tracks all the server controls that return true from the LoadPostData method call, and then invokes the RaisePostDataChangedEvent method on those controls.