Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / Microsoft Access [игнор отключен] [закрыт для гостей] / Поясните значение "InheritTypeEnum" / 1 сообщений из 1, страница 1 из 1
01.10.2004, 15:27:54
    #32720243
MySQLdb
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Поясните значение "InheritTypeEnum"
Вот читтаю про ADOx SetPermission, следующую инфу

авторSetPermissions Method


Specifies the permissions for a group or user on an object.

Syntax

GroupOrUser.SetPermissions Name, ObjectType, Action, Rights [, Inherit]
[, ObjectTypeId]

Parameters

Name A String value that specifies the name of the object for which to set permissions.

ObjectType A Long value which can be one of the ObjectTypeEnum constants, that specifies the type of the object for which to get permissions.

Action A Long value which can be one of the ActionEnum constants that specifies the type of action to perform when setting permissions.

Rights A Long value which can be a bitmask of one or more of the ActionEnum constants, that indicates the rights to set.

Inherit Optional. A Long value which can be one of the InheritTypeEnum constants, that specifies how objects will inherit these permissions. The default value is adInheritNone.

ObjectTypeId Optional. A Variant value that specifies the GUID for a provider object type not defined by the OLE DB specification. This parameter is required if ObjectType is set to adPermObjProviderSpecific; otherwise, it is not used.

Remarks

An error will occur if the provider does not support setting access rights for groups or users.

Note When calling SetPermissions, setting Actions to adAccessRevoke overrides any settings of the Rights parameter. Do not set Actions to adAccessRevoke if you want the rights specified in the Rights parameter to take effect.

авторInheritTypeEnum


Specifies how objects will inherit permissions set with SetPermissions.

Constant Value Description
adInheritBoth 3 Both objects and other containers contained by the primary object inherit the entry.
adInheritContainers 2 Other containers that are contained by the primary object inherit the entry.
adInheritNone 0 Default. No inheritance occurs.
adInheritNoPropagate 4 The adInheritObjects and adInheritContainers flags are not propagated to an inherited entry.
adInheritObjects 1 Non-container objects in the container inherit the permissions.

Мне не понятно
Код: plaintext
InheritTypeEnum
как происходит наследование,
пробовал играться с этим параметром, но логики его действия так и не понял,
кто нить может по человечески объяснить?

-----------------------------------------------------------
С уважением,MySQLdb
...
Рейтинг: 0 / 0
Форумы / Microsoft Access [игнор отключен] [закрыт для гостей] / Поясните значение "InheritTypeEnum" / 1 сообщений из 1, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]