ActiveDirectorySubnet ActiveDirectorySubnet ActiveDirectorySubnet ActiveDirectorySubnet Class

Definition

The ActiveDirectorySubnet class represents a subnet in a Forest.

public ref class ActiveDirectorySubnet : IDisposable
public class ActiveDirectorySubnet : IDisposable
type ActiveDirectorySubnet = class
    interface IDisposable
Public Class ActiveDirectorySubnet
Implements IDisposable
Inheritance
ActiveDirectorySubnetActiveDirectorySubnetActiveDirectorySubnetActiveDirectorySubnet
Implements

Constructors

ActiveDirectorySubnet(DirectoryContext, String) ActiveDirectorySubnet(DirectoryContext, String) ActiveDirectorySubnet(DirectoryContext, String) ActiveDirectorySubnet(DirectoryContext, String)

Initializes an instance of the ActiveDirectorySubnet class, using the specified DirectoryContext object and subnet name.

ActiveDirectorySubnet(DirectoryContext, String, String) ActiveDirectorySubnet(DirectoryContext, String, String) ActiveDirectorySubnet(DirectoryContext, String, String) ActiveDirectorySubnet(DirectoryContext, String, String)

Initializes an instance of the ActiveDirectorySubnet class, using the specified DirectoryContext object, subnet name, and site name.

Properties

Location Location Location Location

Gets or sets the location description of the ActiveDirectorySubnet object.

Name Name Name Name

Gets the subnet name of the ActiveDirectorySubnet object.

Site Site Site Site

Gets or sets the site that the ActiveDirectorySubnet object is a member of.

Methods

Delete() Delete() Delete() Delete()

Deletes the subnet that is represented by this ActiveDirectorySubnet object.

Dispose() Dispose() Dispose() Dispose()

Releases all resources that are used by the ActiveDirectorySubnet object.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the unmanaged resources that are used by the ActiveDirectorySubnet object and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FindByName(DirectoryContext, String) FindByName(DirectoryContext, String) FindByName(DirectoryContext, String) FindByName(DirectoryContext, String)

Returns a subnet that is based on a subnet name.

GetDirectoryEntry() GetDirectoryEntry() GetDirectoryEntry() GetDirectoryEntry()

Gets the DirectoryEntry object for this ActiveDirectorySubnet object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Save() Save() Save() Save()

Writes any changes to the ActiveDirectorySubnet object to the Active Directory Domain Services store.

ToString() ToString() ToString() ToString()

Returns the name of the subnet.

Security

DirectoryServicesPermission
Demand value: LinkDemand

Applies to

See also