如何使用 Active Directory C# 获取域的 ForestTrustDomainInformationAPI
How to get ForestTrustDomainInformation for a domain using Active Directory C# API
我对域对象的 ForestTrustDomainInformation 感兴趣。但是我找不到可以用来检索此信息的 C# API。
如何检索我感兴趣的域的 ForestTrustDomainInformation
?我浏览了一堆 Active Directory 文档。但是我找不到检索此信息的方法。
它不与 Domain
对象一起使用,而是来自 Forest
对象,因为它包含森林之间信任的信息。
假设您有一个 Forest
object, you can use GetTrustRelationship()
with the name of the other forest. That returns a ForestTrustRelationshipInformation
object, that has a TrustedDomainInformation
属性,其中包含 ForestTrustDomainInformation
个对象的列表。
我对域对象的 ForestTrustDomainInformation 感兴趣。但是我找不到可以用来检索此信息的 C# API。
如何检索我感兴趣的域的 ForestTrustDomainInformation
?我浏览了一堆 Active Directory 文档。但是我找不到检索此信息的方法。
它不与 Domain
对象一起使用,而是来自 Forest
对象,因为它包含森林之间信任的信息。
假设您有一个 Forest
object, you can use GetTrustRelationship()
with the name of the other forest. That returns a ForestTrustRelationshipInformation
object, that has a TrustedDomainInformation
属性,其中包含 ForestTrustDomainInformation
个对象的列表。