共用方式為


DomainController.Roles 屬性

定義

取得此網域控制站所擔任的角色。

public:
 property System::DirectoryServices::ActiveDirectory::ActiveDirectoryRoleCollection ^ Roles { System::DirectoryServices::ActiveDirectory::ActiveDirectoryRoleCollection ^ get(); };
public System.DirectoryServices.ActiveDirectory.ActiveDirectoryRoleCollection Roles { get; }
member this.Roles : System.DirectoryServices.ActiveDirectory.ActiveDirectoryRoleCollection
Public ReadOnly Property Roles As ActiveDirectoryRoleCollection

屬性值

ActiveDirectoryRoleCollection 物件,其中包含可指示此網域控制站擔任之角色的 ActiveDirectoryRole 成員集合。

例外狀況

目前的物件已經處置。

適用於

另請參閱