TestimoX

API Reference

Class

AdQueryService

Namespace ADPlayground.Helpers
Assembly ADPlayground
Modifiers static

Provides simplified wrappers around LdapQueryHelper for common AD objects.

Inheritance

  • Object
  • AdQueryService

Methods

GetComputers 2 overloads
public static IEnumerable<SearchResult> GetComputers(String domainName, ComputerProperties propertySet, Boolean includeDisabled = true, Boolean serverOnly = false) #
Returns: IEnumerable<SearchResult>

Retrieves computer objects from the specified domain.

Parameters

domainName System.String requiredposition: 0
propertySet ADPlayground.Helpers.ComputerProperties requiredposition: 1
includeDisabled System.Boolean = true optionalposition: 2
serverOnly System.Boolean = false optionalposition: 3
public static IEnumerable<SearchResult> GetComputers(String domainName, Boolean includeDisabled = true, Boolean serverOnly = false, params String[] properties) #
Returns: IEnumerable<SearchResult>

Retrieves computer objects from the specified domain.

Parameters

domainName System.String requiredposition: 0
includeDisabled System.Boolean = true optionalposition: 1
serverOnly System.Boolean = false optionalposition: 2
properties System.String[] requiredposition: 3
GetComputersAsync 2 overloads
public static Task<IEnumerable<SearchResult>> GetComputersAsync(String domainName, Boolean includeDisabled = true, Boolean serverOnly = false, CancellationToken cancellationToken = null, params String[] properties) #
Returns: Task<IEnumerable<SearchResult>>

Asynchronously retrieves computer objects from the specified domain.

Parameters

domainName System.String requiredposition: 0
propertySet ADPlayground.Helpers.ComputerProperties = true optionalposition: 1
includeDisabled System.Boolean = false optionalposition: 2
serverOnly System.Boolean = null optionalposition: 3
cancellationToken System.Threading.CancellationToken = null requiredposition: 4
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 required
includeDisabled System.Boolean required
serverOnly System.Boolean required
cancellationToken System.Threading.CancellationToken required
properties System.String[] required
GetGroups 2 overloads
public static IEnumerable<GroupInfo> GetGroups(String domainName, GroupProperties propertySet, Boolean includeMembers = false) #
Returns: IEnumerable<GroupInfo>

Retrieves group objects from the specified domain.

Parameters

domainName System.String requiredposition: 0
propertySet ADPlayground.Helpers.GroupProperties requiredposition: 1
includeMembers System.Boolean = false optionalposition: 2
public static IEnumerable<GroupInfo> GetGroups(String domainName, Boolean includeMembers = false, params String[] properties) #
Returns: IEnumerable<GroupInfo>

Retrieves group objects from the specified domain.

Parameters

domainName System.String requiredposition: 0
includeMembers System.Boolean = false optionalposition: 1
properties System.String[] requiredposition: 2
GetGroupsAsync 2 overloads
public static Task<IEnumerable<GroupInfo>> GetGroupsAsync(String domainName, Boolean includeMembers = false, CancellationToken cancellationToken = null, params String[] properties) #
Returns: Task<IEnumerable<GroupInfo>>

Asynchronously retrieves group objects from the specified domain.

Parameters

domainName System.String requiredposition: 0
propertySet ADPlayground.Helpers.GroupProperties = false optionalposition: 1
includeMembers System.Boolean = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = null requiredposition: 3
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 required
includeMembers System.Boolean required
cancellationToken System.Threading.CancellationToken required
properties System.String[] required
GetUsers 2 overloads
public static IEnumerable<SearchResult> GetUsers(String domainName, UserProperties propertySet, Boolean includeDisabled = true) #
Returns: IEnumerable<SearchResult>

Retrieves user objects from the specified domain.

Parameters

domainName System.String requiredposition: 0
propertySet ADPlayground.Helpers.UserProperties requiredposition: 1
includeDisabled System.Boolean = true optionalposition: 2
public static IEnumerable<SearchResult> GetUsers(String domainName, Boolean includeDisabled = true, params String[] properties) #
Returns: IEnumerable<SearchResult>

Retrieves user objects from the specified domain.

Parameters

domainName System.String requiredposition: 0
includeDisabled System.Boolean = true optionalposition: 1
properties System.String[] requiredposition: 2
GetUsersAsync 2 overloads
public static Task<IEnumerable<SearchResult>> GetUsersAsync(String domainName, Boolean includeDisabled = true, CancellationToken cancellationToken = null, params String[] properties) #
Returns: Task<IEnumerable<SearchResult>>

Asynchronously retrieves user objects from the specified domain.

Parameters

domainName System.String requiredposition: 0
propertySet ADPlayground.Helpers.UserProperties = true optionalposition: 1
includeDisabled System.Boolean = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = null requiredposition: 3
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 required
includeDisabled System.Boolean required
cancellationToken System.Threading.CancellationToken required
properties System.String[] required