GetUserOofSettingsRequest Classe
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
O GetUserOofSettingsRequest classe representa uma solicitação para obter configurações de ausência temporária do usuário.
public ref class GetUserOofSettingsRequest : ExchangeWebServices::BaseRequestType
public class GetUserOofSettingsRequest : ExchangeWebServices.BaseRequestType
Public Class GetUserOofSettingsRequest
Inherits BaseRequestType
- Herança
Exemplos
O exemplo a seguir mostra como uma solicitação de GetUserOofSettings de formulário e receber a resposta.
static void GetOOF(ExchangeServiceBinding esb)
{
// Create the request.
GetUserOofSettingsRequest <span class="label">request</span> = new GetUserOofSettingsRequest();
<span class="label">request</span>.Mailbox = new EmailAddress();
<span class="label">request</span>.Mailbox.Address = "someone@example.com";
try
{
// Send the request and get the response.
GetUserOofSettingsResponse response = esb.GetUserOofSettings(<span class="label">request</span>);
if (response.ResponseMessage.ResponseClass == ResponseClassType.Success)
{
if (response.AllowExternalOofSpecified)
{
Console.WriteLine("External OOF enabled for: " + response.AllowExternalOof);
}
// Display OOF information.
Duration dur = response.OofSettings.Duration;
Console.WriteLine("OOF start time: " + dur.StartTime.ToString());
Console.WriteLine("OOF end time: " + dur.EndTime.ToString());
Console.WriteLine("OOF state: " + response.OofSettings.OofState);
Console.WriteLine("External reply: " + response.OofSettings.ExternalReply.Message);
Console.WriteLine("Internal reply: " + response.OofSettings.InternalReply.Message);
}
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
Comentários
Se a mensagem de ausência temporária estiver definida pelo Microsoft Office Outlook, essa operação retornará a mensagem de ausência temporária no formato HTML.
Construtores
| GetUserOofSettingsRequest() |
O GetUserOofSettingsRequest construtor inicializa uma nova instância do GetUserOofSettingsRequest classe. |
Propriedades
| Mailbox |
O Mailbox propriedade obtém ou define o usuário de caixa de correio cujas configurações de ausência temporária são retornadas. Essa propriedade é obrigatória. Esta é uma propriedade de leitura/gravação. |