SiteMapNodeCollection.Insert(Int32, SiteMapNode) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将指定的 SiteMapNode 对象插入集合中的指定索引处。
public:
virtual void Insert(int index, System::Web::SiteMapNode ^ value);
public virtual void Insert(int index, System.Web.SiteMapNode value);
abstract member Insert : int * System.Web.SiteMapNode -> unit
override this.Insert : int * System.Web.SiteMapNode -> unit
Public Overridable Sub Insert (index As Integer, value As SiteMapNode)
参数
- index
- Int32
从零开始的索引,插入该 SiteMapNode 索引。
- value
- SiteMapNode
要 SiteMapNode 插入的。
例外
value 是 null。
注解
可以通过检查IsReadOnly属性来测试集合是否SiteMapNodeCollection为只读。