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
scopeDirectoryScopeThe directory scope.
usersboolIndicates whether users can be selected.
groupsboolIndicates whether groups can be selected.
excludeBuiltinGroupsboolIndicates whether built-in groups should be excluded.
computersboolIndicates whether computers can be selected.
contactsboolIndicates whether contacts can be selected.
wellknownboolIndicates whether well-known objects can be selected.
startingboolIndicates whether this is the starting scope.