Method AddScope
AddScope(DirectoryScope, bool, bool, bool, bool, bool, bool, bool)
Adds a new scope to the list of directory scope options.
public void AddScope(DirectoryScope scope, bool users = false, bool groups = false, bool excludeBuiltinGroups = false, bool computers = false, bool contacts = false, bool wellknown = false, bool starting = false)
Parameters
scope
DirectoryScopeThe directory scope.
users
boolIndicates whether users can be selected.
groups
boolIndicates whether groups can be selected.
excludeBuiltinGroups
boolIndicates whether built-in groups should be excluded.
computers
boolIndicates whether computers can be selected.
contacts
boolIndicates whether contacts can be selected.
wellknown
boolIndicates whether well-known objects can be selected.
starting
boolIndicates whether this is the starting scope.