Exchange Web Services .NET > Tutorial > Authentication for Exchange server (on-premisses)

The following example shows you how to create credentials to use Basic authentication and how to create credentials if you want to use Windows Integrated Authentication.

C# example
VB example