The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

ActiveDirectorySubnetCollection.Insert Method

Inserts the specified ActiveDirectorySubnet object into this collection at the specified index.

Namespace: System.DirectoryServices.ActiveDirectory
Assembly: System.DirectoryServices (in system.directoryservices.dll)

public void Insert (
	int index,
	ActiveDirectorySubnet subnet
public void Insert (
	int index, 
	ActiveDirectorySubnet subnet
public function Insert (
	index : int, 
	subnet : ActiveDirectorySubnet
Not applicable.



The zero-based index in this collection where the object is inserted.


The ActiveDirectorySubnet object to insert into this collection.

Exception typeCondition


A call to the underlying directory service resulted in an error.


The object already exists in the collection.


subnet is a null reference (Nothing in Visual Basic).


The index specified is out of range of the collection.


The ActiveDirectorySubnet object has not yet been saved in the Active Directory Domain Services store.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.