Changes the automatic permissions for the specified value list item. The specified automatic permissions will be applied to an object when the user selects this value list item in the metadata card of the object.
The access control list to be applied.
See NamedACL on AutomaticPermissions.
True if the automatic component can be bypassed by the user.
See CanDeactivate on AutomaticPermissions.
Visual Basic |
---|
Public Sub ChangeAutomaticPermissionsToNamedACL( _ ByVal ValueList As Long, _ ByVal ValueListItemID As Long, _ ByVal NamedACL As Long, _ Optional ByVal CanDeactivate As Boolean = True, _ Optional ByVal AutomaticPermissionsOperationOptions As MFAutomaticPermissionsOperationOptions = MFAutomaticPermissionsOperationOptionsNone _ ) |
The access control list to be applied.
See NamedACL on AutomaticPermissions.
True if the automatic component can be bypassed by the user.
See CanDeactivate on AutomaticPermissions.
Value | Description |
---|---|
MFAutomaticPermissionsOperationOptionsForceActive | The changed automatic permission components are forced active. |
MFAutomaticPermissionsOperationOptionsNone | None |
This method is available only if M-Files API is used in the server interface mode.
This is an alternative to using AutomaticPermissionsForObject property on ValueListItem.