Share via


ADObjectNotFoundException Class

The exception that is thrown when an Active Directory object referred to by the calling code cannot be found on the Lightweight Directory Access Protocol (LDAP) server.

Inheritance Hierarchy

System.Object
  System.Exception
    System.ApplicationException
      Microsoft.SharePoint.EmailIntegration.ADException
        Microsoft.SharePoint.EmailIntegration.ADObjectNotFoundException

Namespace:  Microsoft.SharePoint.EmailIntegration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class ADObjectNotFoundException _
    Inherits ADException

Dim instance As ADObjectNotFoundException
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class ADObjectNotFoundException : ADException

Remarks

Use the exceptions in the Microsoft.SharePoint.EmailIntegration namespace to provide error handling to your implementation of the IEmailHelperService interface. All of the methods of that interface return a RequestStatus value, either by itself or as a member of a RequestResponse object. Consider catching exceptions and returning an appropriate RequestStatus value, such as ObjectNotFound.

For more information about LDAP, see Lightweight Directory Access Protocol (LDAP) Client.

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

ADObjectNotFoundException Members

Microsoft.SharePoint.EmailIntegration Namespace

Other Resources

Lightweight Directory Access Protocol (LDAP) Client