Ескертпе
Бұл бетке кіру үшін қатынас шегін айқындау қажет. Жүйеге кіруді немесе каталогтарды өзгертуді байқап көруге болады.
Бұл бетке кіру үшін қатынас шегін айқындау қажет. Каталогтарды өзгертуді байқап көруге болады.
Операция RemoveDelegate удаляет один или несколько делегатов из почтового ящика пользователя.
Заголовки SOAP
Операция RemoveDelegate может использовать заголовки SOAP, перечисленные и описанные в следующей таблице.
| Header | Элемент | Описание |
|---|---|---|
| Олицетворение |
ExchangeImpersonation |
Определяет пользователя, которого олицетворяет клиентское приложение. |
| MailboxCulture |
MailboxCulture |
Определяет язык и региональные параметры RFC3066, используемые для доступа к почтовому ящику. |
| RequestVersion |
RequestServerVersion |
Определяет версию схемы для запроса операции. |
| ServerVersion |
ServerVersionInfo |
Определяет версию сервера, который ответил на запрос. |
Пример запроса RemoveDelegate
Описание
В следующем примере кода показано, как удалить два делегата из почтового ящика пользователя user1. В этом примере один делегат удаляется с помощью основного SMTP-адреса делегата, а другой — с помощью идентификатора безопасности (SID) делегата.
Код
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2007_SP1"/>
</soap:Header>
<soap:Body>
<RemoveDelegate xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<Mailbox>
<t:EmailAddress>user1@example.com</t:EmailAddress>
</Mailbox>
<UserIds>
<t:UserId>
<t:PrimarySmtpAddress>user2@example.com</t:PrimarySmtpAddress>
</t:UserId>
<t:UserId>
<t:SID>S-1-5-21-1333220396-2200287332-232816053-1118</t:SID>
</t:UserId>
</UserIds>
</RemoveDelegate>
</soap:Body>
</soap:Envelope>
Comments
Для операции RemoveDelegate не требуется, чтобы у указанного пользователя-делегата был почтовый ящик или существовал в службе каталогов Active Directory. Операция RemoveDelegate будет выполнена успешно, если запись делегата потеряна.
Пример ответа RemoveDelegate
Описание
В следующем примере ответа RemoveDelegate показан успешный ответ на запрос RemoveDelegate . Ответ содержит элемент DelegateUserResponseMessageType для каждого делегата, удаленного из почтового ящика.
Код
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="8"
MinorVersion="1"
MajorBuildNumber="206"
MinorBuildNumber="0"
Version="Exchange2007_SP1"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<m:RemoveDelegateResponse xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
ResponseClass="Success"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ResponseMessages>
<m:DelegateUserResponseMessageType ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:DelegateUserResponseMessageType>
<m:DelegateUserResponseMessageType ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:DelegateUserResponseMessageType>
</m:ResponseMessages>
</m:RemoveDelegateResponse>
</soap:Body>
</soap:Envelope>
Пример ответа на ошибку RemoveDelegate
Описание
В следующем примере ответа на ошибку RemoveDelegate показаны результаты запроса на удаление делегата, который не существует.
Код
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="8"
MinorVersion="1"
MajorBuildNumber="206"
MinorBuildNumber="0"
Version="Exchange2007_SP1"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<m:RemoveDelegateResponse xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
ResponseClass="Success"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ResponseMessages>
<m:DelegateUserResponseMessageType ResponseClass="Error">
<m:MessageText>The user is not a delegate for the mailbox.</m:MessageText>
<m:ResponseCode>ErrorNotDelegate</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:DelegateUserResponseMessageType>
</m:ResponseMessages>
</m:RemoveDelegateResponse>
</soap:Body>
</soap:Envelope>