Gets or sets the URL of EWS service on MS Exchange server.
Namespace: MailBee.EwsMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public void SetServerUrl(
string url
)
Public Sub SetServerUrl (
url As String
)
Parameters
- url
- Type: SystemString
The EWS URL.
Exceptions 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