Partager via


activeconnection Field

Topic Last Modified: 2008-09-04

The activeconnection field specifies the ActiveConnection object to be used when you send messages by using Microsoft Exchange Server 2007.

Named Constant

cdoActiveConnection

OLE DB Type

DBTYPE_WSTR

Remarks

This ActiveConnection object reference is only used when you send messages by using Exchange. To send messages by using Exchange, set the https://schemas.microsoft.com/cdo/configuration/sendusing configuration field (CdoSendUsingMethod) to the value cdoSendUsingExchange (3). The Microsoft ActiveX Data Objects (ADO) Connection object must be currently bound to the private mailbox store of the user.

No transaction is assumed for this Connection object when messages are sent. To send messages within a transaction when using a provider that supports transactions, first call _Connection.BeginTrans on this Connection object. Then send the message by using the Send Method. Finally, either commit the transaction by using the _Connection.CommitTrans method, or abort the transaction by using the _Connection.RollbackTrans method.

See Also

Other Resources

Send Method
sendusing Field
CdoSendUsing Enum