CollectionAddFlags Enumeration |
Namespace: NetQuarry
Member name | Value | Description | |
---|---|---|---|
CollectionAddFlagsMask | 268369920 | A mask to identify the bits available to this enum. Bits outside this range must not be used in this enum because they are reserved for other enums whose bits are coordinated with this enum (e.g. PropertyAttrs). | |
AddIfMissing | 131072 | Add object if not already in collection else return the object. Note that if ErrorIfExists is also specified an error will be raised if the item already exists in the collection. | |
ReplaceIfDiff | 262144 | Add object if not already in collection else set value only if it differs from the existing value. For this comparison both the old (if any) and new values are coerced to a string. Thus, for example, string “3” will match numeric 3. | |
LogIfExists | 524288 | Add the object per other flags, but log a warning to the devlog if the item is already in the collection. Note that if ErrorIfExists is also specified an error will be raised (after logging) if the item already exists in the collection. | |
ErrorIfExists | 1048576 | If an object with the same name already exists in collection raise an error. Note that if ReplaceIfDiff is also set, ReplaceIfDiff will be favored. | |
NoDupeCheck | 2097152 | Do not check for duplicates when adding to the collection. |
Copyright (c) 2004-2020 NetQuarry, Inc. All rights reserved.