DirectoryAttributeCollection.Insert(Int32, DirectoryAttribute) 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, DirectoryAttribute) infogar det angivna DirectoryAttribute objektet i DirectoryAttributeCollection den angivna index.
public:
void Insert(int index, System::DirectoryServices::Protocols::DirectoryAttribute ^ value);
public void Insert(int index, System.DirectoryServices.Protocols.DirectoryAttribute value);
member this.Insert : int * System.DirectoryServices.Protocols.DirectoryAttribute -> unit
Public Sub Insert (index As Integer, value As DirectoryAttribute)
Parametrar
- index
- Int32
Den nollbaserade indexpunkten i samlingen där objektet ska infogas DirectoryAttribute .
- value
- DirectoryAttribute
Objektet DirectoryAttribute som ska infogas i samlingen.
Undantag
value är en nullreferens (Nothing i Visual Basic) eller value anger en annan ändringsåtgärd än Lägg till.
index är mindre än noll eller index större än antalet element i objektet DirectoryAttributeCollection .