Exchange 中 EWS 的配置选项Configuration options for EWS in Exchange

查找有关您的 EWS 客户端可以访问的配置设置的信息,以及可影响您的 EWS 客户端的可配置 Exchange 设置。Find information about configuration settings that your EWS client can access, and the configurable Exchange settings that can affect your EWS client.

许多配置设置可能会影响您的 EWS 客户端应用程序可以执行的操作。Many configuration settings can affect what your EWS client application can do. 这些配置设置为:These configuration settings are either:

  • 只读的或可读写的客户端。Read-only or read-writeable from the client.

  • 在承载 EWS 服务的 Exchange 服务器上访问。Accessed on the Exchange server that hosts your EWS service.

客户端可以访问 Exchange Online 上的设置、作为 Office 365 的一部分的 Exchange Online 和内部部署 Exchange 服务器。A client can access settings on Exchange Online, Exchange Online as part of Office 365, and an on-premise Exchange server. Exchange 管理员可以使用所有内部部署 Exchange 服务器设置;但是,并不是所有这些设置都可用于 Exchange Online 租户管理员。All on-premise Exchange server settings are available to Exchange administrators; however, not all of these settings are available to Exchange Online tenant administrators. 本文介绍了客户端、Exchange Server 管理员和 Exchange Online 租户管理员可以访问的配置设置。This article describes which configuration settings clients, Exchange Server administrators, and Exchange Online tenant administrators can access.

客户端可以访问的配置设置Configuration settings that clients can access

您的客户端应用程序可以从 Exchange 服务器获取和设置许多配置选项。Your client application can get and set a number of configuration options from the Exchange server. 自动发现服务提供所有 EWS 应用程序所需的配置设置。Configuration settings that all EWS applications need are provided by the Autodiscover service. 其他配置设置用于特定应用场景。Other configuration settings are used for specific application scenarios.

表1。为 EWS 客户端提供配置选项的 Web 服务功能Table 1. Web service features that provide configuration options for EWS clients

功能Feature 说明Description
自动发现服务Autodiscover service
自动发现服务为客户端应用程序提供了配置信息,以便客户端可以自动配置自己以与 EWS 进行通信。The Autodiscover service provides your client applications with configuration information so that your client can automatically configure itself to communicate with EWS.
邮箱中存储的自定义配置信息Custom configuration information stored in a mailbox
您可以使用多个选项之一将自定义配置信息存储在邮箱中:用户配置对象、自定义项或扩展属性。You can use one of several options to store custom configuration information in your mailbox: user configuration objects, custom items, or extended properties.
委派管理Delegate management
EWS 提供用于管理对邮箱的代理访问的 CRUD 操作。EWS provides CRUD operations for managing delegate access to a mailbox. 委派是已被授予访问其他用户的邮箱权限的用户。Delegates are users who have been given permission to access another user's mailbox.

您可以使用委派管理操作来启用使用 ews 的委派管理,或者,如果您使用的是 EWS 托管 API,则可以使用以下方法:You can use the delegate management operations to enable delegate management by using EWS, or, if you're using the EWS Managed API, you can use the following methods:

- ExchangeService。 AddDelegates- ExchangeService.AddDelegates
- ExchangeService。 GetDelegates- ExchangeService.GetDelegates
- ExchangeService。 UpdateDelegates- ExchangeService.UpdateDelegates
- ExchangeService。 RemoveDelegates- ExchangeService.RemoveDelegates
电子数据展示搜索配置eDiscovery search configuration
电子数据展示客户端应用程序可以获取包括电子数据展示搜索查询、可搜索邮箱列表和就地邮箱保留标识符的搜索配置信息eDiscovery client applications can get search configuration information that includes an eDiscovery search query, a list of searchable mailboxes, and the identifier of in-place mailbox holds.
文件夹权限Folder permissions
文件夹权限限制用户可在公用文件夹中执行的操作,如果是代理访问,代理可以在其他用户的文件夹中执行的操作。Folder permissions limit what a user can do in a public folder, and in the case of delegate access, what a delegate can do in another user's folder. 可以使用folder方法或GetFolder 操作来访问每个文件夹的权限集,包括公用文件夹、共享私人文件夹或用户具有代理访问权限的文件夹。You can use either the Folder.Bind method or the GetFolder operation to access the permission set of every folder, including public folders, shared private folders, or folders to which users have delegate access.
邮件提示、统一消息或保护规则Mail tips, Unified Messaging, or protection rules
GetServiceConfiguration 操作提供有关邮件提示、统一消息和保护规则的只读服务配置信息The GetServiceConfiguration operation provides read-only service configuration information for mail tips, Unified Messaging, and protection rules.

管理员可以在 Exchange 服务器上访问的配置设置Configuration settings that administrators can access on the Exchange server

大多数客户端应用场景不需要更改服务器配置设置;但是,某些方案确实如此。Most client application scenarios don't require changes to server configuration settings; however, some scenarios do. 例如,若要使中间层应用程序能够充当用户,您需要在服务器上设置 Exchange 模拟。For example, to enable a middle-tier application to act as a user, you need to set Exchange Impersonation on the server. 请注意,某些设置只能在本地 Exchange 服务器上进行访问。Note that some settings can only be accessed on on-premise Exchange servers. 如果您针对的是 Exchange Online,则客户端应用程序可能需要使用默认设置。If you are targeting Exchange Online, your client application might need to work with the default settings.

表2。影响 EWS 客户端的 Exchange server 配置选项Table 2. Exchange server configuration options that affect EWS clients

功能Feature 可从 Exchange Online 访问?Accessible from Exchange Online? 有关详细信息,请参阅 .。。For more information, see…
虚拟目录设置(包括身份验证)Virtual directory settings (including authentication)
No
Set-webservicesvirtualdirectoryGet-WebServicesVirtualDirectory
Set-webservicesvirtualdirectorySet-WebServicesVirtualDirectory
自动发现Autodiscover
No
New-autodiscovervirtualdirectoryGet-AutodiscoverVirtualDirectory
New-autodiscovervirtualdirectorySet-AutodiscoverVirtualDirectory
合规性Compliance
Yes
存档Archiving
电子数据展示eDiscovery
保留挂起Retention hold
数据丢失防护Data loss prevention
委派管理Delegate management
Yes
Manage Permissions for RecipientsManage Permissions for Recipients
Exchange 模拟Exchange Impersonation
Yes
配置 Exchange 模拟Configure Exchange Impersonation
邮件提示、统一消息或保护规则Mail tips, Unified Messaging, or protection rules
Yes
邮件提示MailTips
统一消息 CmdletUnified Messaging Cmdlets
Outlook 保护规则Outlook Protection Rules
限制Throttling
No
限制设置Throttling settings
用户代理筛选User agent filtering
Yes
用户代理筛选User agent filtering

另请参阅See also