dbobrowski
dbobrowski

Reputation: 846

What exception is thrown when DirectorySearcher.FindOne() is called and AD is unavailable?

Is there an exception thrown (if so what), null returned, empty data table returned?

Upvotes: 2

Views: 868

Answers (1)

Chris Leonard
Chris Leonard

Reputation: 91

The exception is System.Runtime.InteropServices.COMException. The message will be "The server is not operational."

Upvotes: 2

Related Questions