adTempus API
ArcanaDevelopment.adTempus.Client Namespace / ADTObject Class / CanPerform Method
The operation to check permission for.


In This Topic
    CanPerform Method (ADTObject)
    In This Topic
    Determines whether the user has the necessary permission to perform a specified action on the object
    Syntax
    'Declaration
     
    
    Public Overridable Function CanPerform( _
       ByVal action As SecurityPermission _
    ) As Boolean
    public virtual bool CanPerform( 
       SecurityPermission action
    )
    public:
    virtual bool CanPerform( 
       SecurityPermission action
    ) 

    Parameters

    action
    The operation to check permission for.

    Return Value

    true if the caller has the requested permission or if the object is not secured
    Remarks

    This method uses cached permission information returned by the server on the last refresh of the object. It is therefore possible for CanPerform to report outdated information if permissions have changed since then.

    The permission check considers both inherited and explicit permissions.

    For a "child" object (such as a JobStep this method checks the permission on the owning object.

    See Also