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
scopeDirectoryScopethe scope type
usersboolcan select users
groupsboolcan select groups
excludeBuiltinGroupsboolexclude built-in groups (if
groupsis true)computersboolcan select computers
contactsboolcan select contacts
wellknownboolcan select well-known principals
startingboolis it the starting scope