SMTPConn.AcquireConnection 方法
Establishes the SMTP connection and returns a connection object.
命名空间: Microsoft.SqlServer.Dts.ManagedConnections
程序集: Microsoft.SqlServer.ManagedConnections(在 Microsoft.SqlServer.ManagedConnections.dll 中)
语法
声明
Public Overrides Function AcquireConnection ( _
txn As Object _
) As Object
用法
Dim instance As SMTPConn
Dim txn As Object
Dim returnValue As Object
returnValue = instance.AcquireConnection(txn)
public override Object AcquireConnection(
Object txn
)
public:
virtual Object^ AcquireConnection(
Object^ txn
) override
abstract AcquireConnection :
txn:Object -> Object
override AcquireConnection :
txn:Object -> Object
public override function AcquireConnection(
txn : Object
) : Object
参数
- txn
类型:System.Object
The handle to a transaction type.
返回值
类型:System.Object
The connection object containing the SMTP connection.
注释
During AcquireConnection, the actual connection is created using properties that are set on ConnectionManagerBase object, as well as any connection-type specific properties set on this class