SiteMapNodeCollection.Insert(Int32, SiteMapNode) Metod

Definition

Infogar det angivna SiteMapNode objektet i samlingen vid det angivna indexet.

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)

Parametrar

index
Int32

Det nollbaserade index där SiteMapNode infogas.

value
SiteMapNode

Infoga SiteMapNode .

Undantag

index är mindre än noll.

-eller-

index är större än Count.

Är SiteMapNodeCollection skrivskyddad.

-eller-

Har SiteMapNodeCollection en fast storlek.

value är null.

Kommentarer

Du kan testa om en SiteMapNodeCollection samling är skrivskyddad genom att kontrollera egenskapen IsReadOnly .

Gäller för

Se även