API Reference
Class
AzureTrustInfoCollector
Retrieves trust information from Azure AD Connect or Azure AD DS.
Inheritance
- Object
- AzureTrustInfoCollector
Constructors
public AzureTrustInfoCollector(Func<String, IEnumerable<AzureTrustInfo>> adDsQuery = null, Func<String, IEnumerable<AzureTrustInfo>> adConnectQuery = null, Func<IEnumerable<String>> serverEnumerator = null) #Initializes a new instance of the AzureTrustInfoCollector class.
Parameters
- adDsQuery System.Func{System.String,System.Collections.Generic.IEnumerable{ADPlayground.Trusts.AzureTrustInfo}} = null
- Delegate retrieving Azure AD DS trust data.
- adConnectQuery System.Func{System.String,System.Collections.Generic.IEnumerable{ADPlayground.Trusts.AzureTrustInfo}} = null
- Delegate retrieving Azure AD Connect trust data.
- serverEnumerator System.Func{System.Collections.Generic.IEnumerable{System.String}} = null
- Delegate returning Azure AD Connect server names.
Methods
public IEnumerable<AzureTrustInfo> GetAdConnectTrustInfo(String serverName) #Returns:
IEnumerable<AzureTrustInfo>Retrieves trust information from Azure AD Connect on the specified server.
Parameters
- serverName System.String
- Server name.
Returns
Collection of trust details.
public IEnumerable<AzureTrustInfo> GetAdDsTrustInfo(String domainName) #Returns:
IEnumerable<AzureTrustInfo>Retrieves trust information from Azure AD DS for the specified domain.
Parameters
- domainName System.String
- Domain name.
Returns
Collection of trust details.
public IEnumerable<AzureTrustInfo> GetAllAdConnectTrustInfo() #Returns:
IEnumerable<AzureTrustInfo>Retrieves Azure AD Connect trust details from all configured servers.
public IEnumerable<AzureTrustInfo> GetForestAdDsTrustInfo() #Returns:
IEnumerable<AzureTrustInfo>Retrieves trust details from all forest domains.