ActiveDirectorySubnet 類別

定義

ActiveDirectorySubnet 類別表示 Forest 中的子網路。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
繼承
ActiveDirectorySubnet
實作

建構函式

ActiveDirectorySubnet(DirectoryContext, String)

使用指定之 ActiveDirectorySubnet 物件和子網路名稱,初始化 DirectoryContext 類別的執行個體。Initializes an instance of the ActiveDirectorySubnet class, using the specified DirectoryContext object and subnet name.

ActiveDirectorySubnet(DirectoryContext, String, String)

使用指定之 ActiveDirectorySubnet 物件、子網路名稱和站台名稱,初始化 DirectoryContext 類別的執行個體。Initializes an instance of the ActiveDirectorySubnet class, using the specified DirectoryContext object, subnet name, and site name.

屬性

Location

取得或設定 ActiveDirectorySubnet 物件的位置描述。Gets or sets the location description of the ActiveDirectorySubnet object.

Name

取得 ActiveDirectorySubnet 物件的子網路名稱。Gets the subnet name of the ActiveDirectorySubnet object.

Site

取得或設定 ActiveDirectorySubnet 物件所隸屬的站台。Gets or sets the site that the ActiveDirectorySubnet object is a member of.

方法

Delete()

刪除此 ActiveDirectorySubnet 物件所表示的子網路。Deletes the subnet that is represented by this ActiveDirectorySubnet object.

Dispose()

釋放 ActiveDirectorySubnet 物件所使用的全部資源。Releases all resources that are used by the ActiveDirectorySubnet object.

Dispose(Boolean)

釋放 ActiveDirectorySubnet 物件所使用的 Unmanaged 資源,並選擇性釋放 Managed 資源。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.

(繼承來源 Object)
FindByName(DirectoryContext, String)

根據子網路名稱傳回子網路。Returns a subnet that is based on a subnet name.

GetDirectoryEntry()

取得這個 DirectoryEntry 物件的 ActiveDirectorySubnet 物件。Gets the DirectoryEntry object for this ActiveDirectorySubnet object.

GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
Save()

ActiveDirectorySubnet 物件的所有變更寫入到 Active Directory 網域服務存放區中。Writes any changes to the ActiveDirectorySubnet object to the Active Directory Domain Services store.

ToString()

傳回子網路的名稱。Returns the name of the subnet.

安全性

DirectoryServicesPermission
需求值:LinkDemandDemand value: LinkDemand

適用於

另請參閱