The class represents a subnet in a Forest.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
Thetype exposes the following members.
|ActiveDirectorySubnet(DirectoryContext, String)||Initializes an instance of the class, using the specified DirectoryContext object and subnet name.|
|ActiveDirectorySubnet(DirectoryContext, String, String)||Initializes an instance of the class, using the specified DirectoryContext object, subnet name, and site name.|
|Delete||Deletes the subnet that is represented by this object.|
|Dispose()||Releases all resources that are used by the object.|
|Dispose(Boolean)||Releases the unmanaged resources that are used by the object and optionally releases the managed resources.|
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|FindByName||Returns a subnet that is based on a subnet name.|
|GetDirectoryEntry||Gets the DirectoryEntry object for this object.|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|Save||Writes any changes to the object to the Active Directory Domain Services store.|
|ToString||Returns the name of the subnet. (Overrides Object.ToString().)|
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.