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 the default hash function. (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 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.