Partilhar via


AccessDeniedException Class

Specifies the exception that is thrown when the Business Data Connectivity (BDC) service authorization subsystem detects an access attempt that is not valid.

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.BusinessData.Infrastructure.BdcException
      Microsoft.BusinessData.Infrastructure.AccessDeniedException

Namespace:  Microsoft.BusinessData.Infrastructure
Assembly:  Microsoft.BusinessData (in Microsoft.BusinessData.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class AccessDeniedException _
    Inherits BdcException
'Usage
Dim instance As AccessDeniedException
[SerializableAttribute]
public sealed class AccessDeniedException : BdcException

Remarks

This exception is thrown in certain scenarios, for example, when a user or a service account attempts to perform an action that the user does not have permissions to do, such as access an external content type, execute a method, or delete an application.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

AccessDeniedException Members

Microsoft.BusinessData.Infrastructure Namespace