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 成员的集合。

例外

当前对象已被释放。

适用于

另请参阅