This documentation is archived and is not being maintained.
ActiveDirectorySubnet Class
Visual Studio 2010
The ActiveDirectorySubnet class represents a subnet in a Forest.
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 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.
Show:
