API Reference
AdQueryService
Provides simplified wrappers around LdapQueryHelper for common AD objects.
Inheritance
- Object
- AdQueryService
Methods
public static IEnumerable<SearchResult> GetComputers(String domainName, ComputerProperties propertySet, Boolean includeDisabled = true, Boolean serverOnly = false) #IEnumerable<SearchResult>Retrieves computer objects from the specified domain.
Parameters
- domainName System.String
- propertySet ADPlayground.Helpers.ComputerProperties
- includeDisabled System.Boolean = true
- serverOnly System.Boolean = false
public static IEnumerable<SearchResult> GetComputers(String domainName, Boolean includeDisabled = true, Boolean serverOnly = false, params String[] properties) #IEnumerable<SearchResult>Retrieves computer objects from the specified domain.
Parameters
- domainName System.String
- includeDisabled System.Boolean = true
- serverOnly System.Boolean = false
- properties System.String[]
public static Task<IEnumerable<SearchResult>> GetComputersAsync(String domainName, Boolean includeDisabled = true, Boolean serverOnly = false, CancellationToken cancellationToken = null, params String[] properties) #Task<IEnumerable<SearchResult>>Asynchronously retrieves computer objects from the specified domain.
Parameters
- domainName System.String
- propertySet ADPlayground.Helpers.ComputerProperties = true
- includeDisabled System.Boolean = false
- serverOnly System.Boolean = null
- cancellationToken System.Threading.CancellationToken = null
GetComputersAsync(System.String domainName, System.Boolean includeDisabled, System.Boolean serverOnly, System.Threading.CancellationToken cancellationToken, System.String[] properties) #Asynchronously retrieves computer objects from the specified domain.
Parameters
- domainName System.String
- includeDisabled System.Boolean
- serverOnly System.Boolean
- cancellationToken System.Threading.CancellationToken
- properties System.String[]
public static IEnumerable<GroupInfo> GetGroups(String domainName, GroupProperties propertySet, Boolean includeMembers = false) #IEnumerable<GroupInfo>Retrieves group objects from the specified domain.
Parameters
- domainName System.String
- propertySet ADPlayground.Helpers.GroupProperties
- includeMembers System.Boolean = false
public static IEnumerable<GroupInfo> GetGroups(String domainName, Boolean includeMembers = false, params String[] properties) #IEnumerable<GroupInfo>Retrieves group objects from the specified domain.
Parameters
- domainName System.String
- includeMembers System.Boolean = false
- properties System.String[]
public static Task<IEnumerable<GroupInfo>> GetGroupsAsync(String domainName, Boolean includeMembers = false, CancellationToken cancellationToken = null, params String[] properties) #Task<IEnumerable<GroupInfo>>Asynchronously retrieves group objects from the specified domain.
Parameters
- domainName System.String
- propertySet ADPlayground.Helpers.GroupProperties = false
- includeMembers System.Boolean = null
- cancellationToken System.Threading.CancellationToken = null
GetGroupsAsync(System.String domainName, System.Boolean includeMembers, System.Threading.CancellationToken cancellationToken, System.String[] properties) #Asynchronously retrieves group objects from the specified domain.
Parameters
- domainName System.String
- includeMembers System.Boolean
- cancellationToken System.Threading.CancellationToken
- properties System.String[]
public static IEnumerable<SearchResult> GetUsers(String domainName, UserProperties propertySet, Boolean includeDisabled = true) #IEnumerable<SearchResult>Retrieves user objects from the specified domain.
Parameters
- domainName System.String
- propertySet ADPlayground.Helpers.UserProperties
- includeDisabled System.Boolean = true
public static IEnumerable<SearchResult> GetUsers(String domainName, Boolean includeDisabled = true, params String[] properties) #IEnumerable<SearchResult>Retrieves user objects from the specified domain.
Parameters
- domainName System.String
- includeDisabled System.Boolean = true
- properties System.String[]
public static Task<IEnumerable<SearchResult>> GetUsersAsync(String domainName, Boolean includeDisabled = true, CancellationToken cancellationToken = null, params String[] properties) #Task<IEnumerable<SearchResult>>Asynchronously retrieves user objects from the specified domain.
Parameters
- domainName System.String
- propertySet ADPlayground.Helpers.UserProperties = true
- includeDisabled System.Boolean = null
- cancellationToken System.Threading.CancellationToken = null
GetUsersAsync(System.String domainName, System.Boolean includeDisabled, System.Threading.CancellationToken cancellationToken, System.String[] properties) #Asynchronously retrieves user objects from the specified domain.
Parameters
- domainName System.String
- includeDisabled System.Boolean
- cancellationToken System.Threading.CancellationToken
- properties System.String[]