TestimoX

API Reference

Class

ComputerGatherer

Namespace ADPlayground
Assembly ADPlayground
Modifiers static

Queries Active Directory for computer accounts and projects them into ComputerRecord rows.

Inheritance

  • Object
  • ComputerGatherer

Methods

public static IReadOnlyList<ComputerRecord> GetComputers(ComputerQueryOptions options, CancellationToken cancellationToken = null) #
Returns: IReadOnlyList<ComputerRecord>

Retrieves computers using a full ComputerQueryOptions descriptor.

Parameters

options ADPlayground.ComputerQueryOptions requiredposition: 0
Query options.
cancellationToken System.Threading.CancellationToken = null optionalposition: 1
Cancellation token.

Returns

List of projected ComputerRecord rows.

GetComputersAsync 2 overloads
public static Task<IReadOnlyList<ComputerRecord>> GetComputersAsync(IEnumerable<String> domains, ComputerProperties propertySet = Basic, ComputerFilter filter = None, CancellationToken cancellationToken = null) #
Returns: Task<IReadOnlyList<ComputerRecord>>

Retrieves computers from the specified domains using a simplified option set.

Parameters

domains System.Collections.Generic.IEnumerable{System.String} requiredposition: 0
Domains to query.
propertySet ADPlayground.Helpers.ComputerProperties = Basic optionalposition: 1
Attribute set to retrieve.
filter ADPlayground.ComputerFilter = None optionalposition: 2
Filter flags.
cancellationToken System.Threading.CancellationToken = null optionalposition: 3
Cancellation token.

Returns

List of projected ComputerRecord rows.

public static async Task<IReadOnlyList<ComputerRecord>> GetComputersAsync(ComputerQueryOptions options, CancellationToken cancellationToken = null) #
Returns: Task<IReadOnlyList<ComputerRecord>>

Retrieves computers using a full ComputerQueryOptions descriptor.

Parameters

options ADPlayground.ComputerQueryOptions requiredposition: 0
Query options.
cancellationToken System.Threading.CancellationToken = null optionalposition: 1
Cancellation token.

Returns

List of projected ComputerRecord rows.

Properties

public static IComputersSnapshotProvider SnapshotProvider { get; set; } #

Optional snapshot provider used by hosts to satisfy simple computer queries from a local cache.