DirectoryControlCollection.Insert(Int32, DirectoryControl) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Metoden Insert(Int32, DirectoryControl) infogar det angivna DirectoryControl objektet i DirectoryControlCollection det angivna indexet.
public:
void Insert(int index, System::DirectoryServices::Protocols::DirectoryControl ^ value);
public void Insert(int index, System.DirectoryServices.Protocols.DirectoryControl value);
member this.Insert : int * System.DirectoryServices.Protocols.DirectoryControl -> unit
Public Sub Insert (index As Integer, value As DirectoryControl)
Parametrar
- index
- Int32
Indexet i samlingen där objektet ska infogas DirectoryControl .
- value
- DirectoryControl
Objektet DirectoryControl som ska infogas i samlingen.
Undantag
value är en nullreferens (Nothing i Visual Basic).
index är mindre än noll eller index större än antalet element i objektet DirectoryControlCollection .
DirectoryControlCollection är skrivskyddad eller DirectoryControlCollection har en fast storlek.