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


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

    Parameters

    action
    The operation to check permission for. The operation to check permission for.

    Return Value

    true if the caller has the requested permission or if the object is not securedtrue 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.

    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