Method AddScope
AddScope(DirectoryScope, bool, bool, bool, bool, bool, bool, bool)
An easy-to-use method which adds a new element to UnderlyingScopeObjects.
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 scope type
users
boolcan select users
groups
boolcan select groups
excludeBuiltinGroups
boolexclude built-in groups (if
groups
is true)computers
boolcan select computers
contacts
boolcan select contacts
wellknown
boolcan select well-known principals
starting
boolis it the starting scope