Compartilhar via


Método ExchangeServiceBinding.CreateAttachment

Esta API oferece suporte à infraestrutura .NET Framework e não se destina a ser usada diretamente do seu código.

Envia a solicitação e recebe a resposta a um CreateAttachment operação.

Namespace:  Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.Exchange2007
Assembly:  Microsoft.ServiceModel.Channels.Mail.ExchangeWebService (em Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.dll)

Sintaxe

'Declaração
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/CreateAttachment", Use := SoapBindingUse.Literal,  _
    ParameterStyle := SoapParameterStyle.Bare)> _
<SoapHeaderAttribute("MailboxCulture")> _
<SoapHeaderAttribute("SerializedSecurityContext")> _
<SoapHeaderAttribute("ExchangeImpersonation")> _
<SoapHeaderAttribute("ServerVersionInfoValue", Direction := SoapHeaderDirection.Out)> _
Public Function CreateAttachment ( _
    CreateAttachment1 As CreateAttachmentType _
) As CreateAttachmentResponseType
'Uso
Dim instance As ExchangeServiceBinding
Dim CreateAttachment1 As CreateAttachmentType
Dim returnValue As CreateAttachmentResponseType

returnValue = instance.CreateAttachment(CreateAttachment1)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/CreateAttachment", Use = SoapBindingUse.Literal, 
    ParameterStyle = SoapParameterStyle.Bare)]
[SoapHeaderAttribute("MailboxCulture")]
[SoapHeaderAttribute("SerializedSecurityContext")]
[SoapHeaderAttribute("ExchangeImpersonation")]
[SoapHeaderAttribute("ServerVersionInfoValue", Direction = SoapHeaderDirection.Out)]
public CreateAttachmentResponseType CreateAttachment(
    CreateAttachmentType CreateAttachment1
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/exchange/services/2006/messages/CreateAttachment", Use = SoapBindingUse::Literal, 
    ParameterStyle = SoapParameterStyle::Bare)]
[SoapHeaderAttribute(L"MailboxCulture")]
[SoapHeaderAttribute(L"SerializedSecurityContext")]
[SoapHeaderAttribute(L"ExchangeImpersonation")]
[SoapHeaderAttribute(L"ServerVersionInfoValue", Direction = SoapHeaderDirection::Out)]
public:
CreateAttachmentResponseType^ CreateAttachment(
    CreateAttachmentType^ CreateAttachment1
)
public function CreateAttachment(
    CreateAttachment1 : CreateAttachmentType
) : CreateAttachmentResponseType

Parâmetros

Valor de retorno

Tipo: Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.Exchange2007.CreateAttachmentResponseType
Um objeto que contém o status do CreateAttachment operação.

Permissões

Plataformas

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

o.NET Framework e.NET Compact Framework não oferecem suporte a todas as versões de cada plataforma. Para obter uma lista de versões suportadas, consulte Requisitos de sistema do .NET framework.

Informações sobre versão

.NET Compact Framework

Compatível com: 3.5

Consulte também

Referência

ExchangeServiceBinding Classe

Membros ExchangeServiceBinding

Namespace Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.Exchange2007