EwsSetServerUrl Method
Gets or sets the URL of EWS service on MS Exchange server.

Namespace: MailBee.EwsMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public void SetServerUrl(
	string url
)

Parameters

url
Type: SystemString
The EWS URL.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionurl is a null reference (Nothing in Visual Basic) or an empty string.
Remarks
Using Autodiscover(String) is the preferred way of obtaining EWS URL but it requires that Autodiscover is correctly set up on the server (it's not always so). Also, Autodiscover can be slow. If this is a concern for you, you can set this URL directly. Typically, it's something like "https://server.com/EWS/Exchange.asmx".
See Also