API Reference
Class
ComputerGatherer
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
- Query options.
- cancellationToken System.Threading.CancellationToken = null
- 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}
- Domains to query.
- propertySet ADPlayground.Helpers.ComputerProperties = Basic
- Attribute set to retrieve.
- filter ADPlayground.ComputerFilter = None
- Filter flags.
- cancellationToken System.Threading.CancellationToken = null
- 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
- Query options.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.
Returns
List of projected ComputerRecord rows.
Inherited Methods
Properties
public static IComputersSnapshotProvider SnapshotProvider { get; set; } #Optional snapshot provider used by hosts to satisfy simple computer queries from a local cache.