ActiveDirectorySite.GetComputerSite 方法

定义

获取此计算机所属的站点。

public:
 static System::DirectoryServices::ActiveDirectory::ActiveDirectorySite ^ GetComputerSite();
public static System.DirectoryServices.ActiveDirectory.ActiveDirectorySite GetComputerSite ();
static member GetComputerSite : unit -> System.DirectoryServices.ActiveDirectory.ActiveDirectorySite
Public Shared Function GetComputerSite () As ActiveDirectorySite

返回

一个 ActiveDirectorySite 对象,其中包含调用方的当前站点。

例外

调用方的计算机不属于某个站点。

调用基础目录服务导致错误。

目标服务器忙或不可用。

适用于