OCLOperators canAccess

The canAccess operator is available on objects and checks if this object can access a supplied ViewModel based on the ViewModels Access Expression settings.

Template

self.canAccess(<name of viewmodel as string>)

Example

self.canAccess(User.ViewModels.UserSettings)

In the example above we use the ViewModels operator to be sure that if the viewmodel name is changed, we get notified in the designer.

See also

ViewModel access and security

OCLOperators ViewModels

This page was edited 84 days ago on 02/10/2024. What links here