ActiveDirectorySubnet Class
.NET Framework 4.5
The ActiveDirectorySubnet class represents a subnet in a Forest.
Namespace: System.DirectoryServices.ActiveDirectory
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
The ActiveDirectorySubnet type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ActiveDirectorySubnet(DirectoryContext, String) | Initializes an instance of the ActiveDirectorySubnet class, using the specified DirectoryContext object and subnet name. |
![]() | ActiveDirectorySubnet(DirectoryContext, String, String) | Initializes an instance of the ActiveDirectorySubnet class, using the specified DirectoryContext object, subnet name, and site name. |
| Name | Description | |
|---|---|---|
![]() | Delete | Deletes the subnet that is represented by this ActiveDirectorySubnet object. |
![]() | Dispose() | Releases all resources that are used by the ActiveDirectorySubnet object. |
![]() | Dispose(Boolean) | Releases the unmanaged resources that are used by the ActiveDirectorySubnet 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 ActiveDirectorySubnet 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 ActiveDirectorySubnet object to the Active Directory Domain Services store. |
![]() | ToString | Returns the name of the subnet. (Overrides Object.ToString().) |
- DirectoryServicesPermission
Demand value: LinkDemand
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.



